openssl – Verify if a cert and key are pairs

Run this:

openssl x509 -noout -modulus -in server.pem | openssl md5 ;\
openssl rsa -noout -modulus -in server.key | openssl md5

Leave a Reply