User Tools

Site Tools

Please note, that this is an old archived version of this site. Check out the new version at!

Print Information about a Key

openssl x509 -inform DER -in testkey.cer -noout -text

Informations about the used arguments from the OpenSSL man page:

  • x509: Certificate display and signing utility.
  • -inform DER: This specifies the input format normally the command will expect an X509 certificate but this can change if other options such as -req are present. The DER format is the DER encoding of the certificate and PEM is the base64 encoding of the DER encoding with header and footer lines added. The NET option is an obscure Netscape server format that is now obsolete.
  • -in testkey.cer: This specifies the input filename to read a certificate from or standard input if this option is not specified.
  • -noout: this option prevents output of the encoded version of the request.
  • -text: prints out the certificate in text form. Full details are output including the public key, signature algorithms, issuer and subject names, serial number any extensions present and any trust settings.

You should redirect the output into a file (with “> testkey_info.txt”) or into some pager (like “| less”) as this outputs a lot of information.

info/cryptography/openssl/print_key.txt · Last modified: 2015-01-29 09:15 by andunix