HostOnNet Blog


Verify SSL certificate and private key

Some times you have a SSL certificate and private key that do not match. To verify if SSL certificate and Private keys are matched, run

openssl x509 -noout -modulus -in YOURDOMAIN.COM.crt | openssl md5 

Compare the md5 sum you got with that of private key.

openssl rsa -noout -modulus -in YOURDOMAIN.COM.key | openssl md5

Posted in Security