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

后端 未结 5 1111
梦毁少年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:45

    You can list down the entries (certificates details) with the keytool and even you don't need to mention the store type.

    keytool -list -v -keystore cert.p12 -storepass 
    
     Keystore type: PKCS12
     Keystore provider: SunJSSE
    
     Your keystore contains 1 entry
     Alias name: 1
     Creation date: Jul 11, 2020
     Entry type: PrivateKeyEntry
     Certificate chain length: 2
    

提交回复
热议问题