My notepad

Chris' IT notes…
← Back

Verify that private key and SSL certificate are matching via command line

sh
# openssl rsa -modulus -noout -in private_key.key | openssl md5
(stdin)= b650539so2020gwoge778b6981a38c

# openssl x509 -modulus -noout -in mysite_certificate.crt | openssl md5
(stdin)= b650539so2020gwoge778b6981a38c

the outputs must match :)