用到JAVA的keytoo命令l
查看证书
/app/WebSphere/AppServer/java/8.0/bin/keytool -list -keystore /app/WebSphere/AppServer/usr/servers/1ARS/resources/security/key.jks
导出证书
app/WebSphere/AppServer/java/8.0/bin/keytool -exportcert -alias mp.weixin.qq.com -keystore /app/WebSphere/AppServer/usr/servers/ARS-UAT/resources/security/key.jks -file ./mp.cer -rfc
导入证书
/app/WebSphere/AppServer/java/8.0/bin/keytool -importcert -trustcacerts -alias mp.weixin.qq.com -file ./mp.cer -keystore /app/WebSphere/AppServer/usr/servers/1ARS/resources/security/key.jks
移除证书
/app/WebSphere/AppServer/java/8.0/bin/keytool -delete -alias emailcert -keystore /app/WebSphere/AppServer/usr/servers/1ARS/resources/security/key.jks
pem转pfx
openssl pkcs12 -inkey xxxxx.pem -in xxxxx.metlife.com.cn.crt -export -out xxxxx.pfx