Ubuntu配置tomcat 443(https):
生成.keystore文件: keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password:
Re-enter new password:
What is your first and last name?
What is the name of your organizational unit?
What is the name of your organization?
What is the name of your City or Locality?
What is the name of your State or Province?
What is the two-letter country code for this unit?
Is CN=aa, OU=aa, O=aa, L=aa, ST=aa, C=aa correct?
Enter key password for
(RETURN if same as keystore password):
Re-enter new password:
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /root/.keystore -destkeystore /root/.keystore -deststoretype pkcs12". mv /root/.keystore /var/lib/tomcat7/conf/ vi /var/lib/tomcat7/conf/server.xml