生成证书:
keytool -genkey -alias cas -keyalg RSA -keystore cas.key
导出证书:
keytool -export -alias cas -file cas.cer -keystore cas.key
导入证书:
keytool -import -alias cas -file cas.cer -keystore cas.key
JAVA https证书相关
原文:http://www.cnblogs.com/yeahdwb/p/4025609.html