Using openssl to match private key, cerificate and CSR

In a recent migration we came across a complete messed up server where SSL related keys, certificates and CSR are scattered all over.

We ran following openssl commands to match these three:

openssl req -noout -modulus -in  server.csr | openssl md5
(stdin)= 395cb6f3a0def959d81f8f6a26d12749

openssl rsa -noout -modulus -in myserver.key | openssl md5
(stdin)= 395cb6f3a0def959d81f8f6a26d12749

openssl x509 -noout -modulus -in ssl-bundle.crt | openssl md5
(stdin)= 395cb6f3a0def959d81f8f6a26d12749

As you can see matching md5 indicated above triplet is a valid combo!

Make sure you use correct csr, key and crt file with respective openssl arguments.

Related: You may like this page about openssl commands.

Discuss your project
with our experts

No obligation. Limited slots.

Contact Form Business Enquiry

"*" indicates required fields

Please attach any RFP, project specification, or document that you would like to share.
Drop files here or
Max. file size: 5 GB.
    This field is for validation purposes and should be left unchanged.