How to export the all intermediate certs including root certificates using keytool only

前端 未结 3 737
有刺的猬
有刺的猬 2021-02-09 04:00

I am Trying to configure SSL and got the .pfx file from server team. The Certificate chain length: 2

When i am trying to export the certificate chain using keytool, only

3条回答
  •  抹茶落季
    2021-02-09 04:24

    This works in Java 8 to export the whole certificate chain to a file:

    keytool -list -alias yourcert -keystore /path/to/keystore -rfc
    

    Same format as export except it dumps the whole chain. You lose out on the -file option, but you can simply redirect to a file using >

提交回复
热议问题