keytool -importkeystore -srckeystore my.jks -destkeystore my.p12 -srcstoretype JKS -deststoretype PKCS12 -srcstorepass wenhq -deststorepass wenhq -srcalias tomcat2 -destalias tomcat2 -srckeypass wenhq -destkeypass wenhq -noprompt
openssl pkcs12 -in my.p12 -out my.pem -passin pass:wenhq -passout p...阅读全文
keytool -list -v -keystore my.jks -storepass wenhq
keytool -list -keystore cacerts -storepass changeit
keytool -list -keystore cacerts -alias verisignclass3g5ca -storepass changeit
keytool -export -alias verisignclass3ca -file verisignclass3ca.crt -keystore cacerts -storepass changeit
keytool -p...阅读全文
1、让不带ssl的链接强制跳转到ssl链接。
server {
server_name china.wenhq.com;
rewrite ^/(.*)$ https://china.wenhq.com/$1 permanent;
}
2、配置ssl
server
{
listen 443;
server_name china.wenhq.com;
ssl on;
ssl_certificate /usr/local/etc/server.crt;
ssl_certificate_key /usr/local/etc/server.key;
index ...阅读全文