Compare SSL key and certificate

If you want to find out if a key and certificate match you can compare them like this:

openssl rsa -noout -modulus -in | openssl md5 openssl x509 -noout -modulus -in | openssl md5

Compare SSL key and certificate
Share this