Search code examples
javakeytool

How to see a certificate keysize using keytool?


When the certificate is created it is possible to configure -keysize option for command genkeypair.

Is it possible to see a certificate keysize using keytool?

I have tried these options without success:

keytool  -list –rfc

keytool  -list –v

Was not able to find it here: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/keytool.html#keytool_option_list


Solution

  • This is not possible with keytool, but there is a GUI alternative called "KeyStore Explorer" that shows the key size:

    KeyStore Explorer