check if SSL Cert and Key are a pair

To verify an SSL Cert/Key pair make sure the modulus matches:

# diff  <(openssl rsa -in fordodone.com.key -modulus -noout ) <(openssl x509 -in fordodone.com.crt -modulus -noout)

No output means the key and cert are a pair.

Leave a Reply

Your email address will not be published. Required fields are marked *