19 June 2014

SSL Certificate Key Matching

Use the following commands to match the key, CRT and CSR of a SSL certificate.
openssl x509 -noout -modulus -in certificate.crt | openssl md5
openssl rsa -noout -modulus -in privatekey.key | openssl md5
openssl req -noout -modulus -in csr.csr | openssl md5