• JKS 转换为 P12

    1
    2
    3
    4
    5
    6
    7
    keytool -importkeystore \
    -srckeystore source.jks \
    -srcstoretype jks \
    -destkeystore target.p12 \
    -deststoretype pkcs12 \
    -srcstorepass source_password \
    -deststorepass target_password
  • 查看 P12 证书

    1
    2
    3
    4
    keytool -list -v \
    -keystore source.p12 \
    -storetype pkcs12 \
    -storepass source_password
  • P12 转换为 JKS

    1
    2
    3
    4
    5
    6
    7
    keytool -importkeystore \
    -srckeystore source.p12 \
    -srcstoretype pkcs12 \
    -destkeystore target.jks \
    -deststoretype jks \
    -srcstorepass source_password \
    -deststorepass target_password
  • 查看 JKS 证书

    1
    2
    3
    4
    keytool -list -v \
    -keystore source.jks \
    -storetype jks \
    -storepass source_password

评论