生成tomcat证书文件
root@Test:~# keytool -genkey -alias TEST -keyalg RSA
Enter keystore password:? 123456
What is your first and last name?
? [Unknown]:? TEST
What is the name of your organizational unit?
? [Unknown]:? NSD
What is the name of your organization?
? [Unknown]:? Org
What is the name of your City or Locality?
? [Unknown]:? Beijing
What is the name of your State or Province?
? [Unknown]:? Beijing
What is the two-letter country code for this unit?
? [Unknown]:? CN
Is CN=TEST, OU=NSD, O=Org, L=Beijing, ST=Beijing, C=CN correct?
? [no]:? y
?
Enter key password for <TEST>
? (RETURN if same as keystore password):?
在用户目录下生成.keystore文件。