JKS 转换为 P12
1
2
3
4
5
6
7keytool -importkeystore \
-srckeystore source.jks \
-srcstoretype jks \
-destkeystore target.p12 \
-deststoretype pkcs12 \
-srcstorepass source_password \
-deststorepass target_password
查看 P12 证书
1
2
3
4keytool -list -v \
-keystore source.p12 \
-storetype pkcs12 \
-storepass source_passwordP12 转换为 JKS
1
2
3
4
5
6
7keytool -importkeystore \
-srckeystore source.p12 \
-srcstoretype pkcs12 \
-destkeystore target.jks \
-deststoretype jks \
-srcstorepass source_password \
-deststorepass target_password查看 JKS 证书
1
2
3
4keytool -list -v \
-keystore source.jks \
-storetype jks \
-storepass source_password