How to list the certificates stored in a PKCS12 keystore with keytool?

后端 未结 5 1101
梦毁少年i
梦毁少年i 2021-01-30 05:06

I wanted to list the certificates stored in a PKCS12 keystore.

The keystore has the extension .pfx

5条回答
  •  伪装坚强ぢ
    2021-01-30 05:31

    If the keystore is PKCS12 type (.pfx) you have to specify it with -storetype PKCS12 (line breaks added for readability):

    keytool -list -v -keystore  \
        -storepass  \
        -storetype PKCS12
    

提交回复
热议问题