How to print the public key of a certificate using keytool?

前端 未结 4 2159
误落风尘
误落风尘 2020-12-24 01:35

Is there a way in keytool to print the publick key of a certificate? I tried:

keytool -printcert -file client.crt

But it gives only the fol

4条回答
  •  甜味超标
    2020-12-24 02:19

    Keytool list rfc just prints the base64 encoded version of whole certificate, not the public key. Keytool doesn't support the printing the public key of Certificate. We can use openssl for this purpose.

提交回复
热议问题