证书名称以test为例:
别名为testAlias
生成证书:keytool -genkey -alias testAlias -keyalg RSA -keystore test.keystore
查看证书条目:keytool -list -keystore test.keystore
导出公钥:keytool -export -alias testAlias -keystore test.keystore -file test.cer
查看证书详细信息:keytool -printcert -file test.cer