Verify certificate and private key with Openssl

Openssl can be used for verifying if there is a match between a private key and certificate.

Enter these commands and analyze the output.

openssl x509 -noout -text -in server.crt
openssl rsa -noout -text -in server.key

Compare the two sections listed below, they should be the same if there is a match.

ComparePubkeyComparePrivkey

This entry was posted in OpenSSL, PKI. Bookmark the permalink.