Compare private key and ssl

Last updated:

CERT
openssl x509 -noout -modulus -in cert.crt | openssl md5  
openssl rsa -noout -modulus -in privkey.txt | openssl md5

where:
cert.crt is your certificate
privkey.txt is your private key.


references:

  1. How to verify if a Private Key Matches a Certificate? (ibm.com)