Check a certificateCheck a certificate and return information about it(Signing authority, expiration date, etc.)
openssl x509 -in server.crt -text -noout
Check a keyCheck the SSL key and verify the consistency
openssl rsa -in server.key -check
Check a CSRVerify the CSR and print CSR data filled in when generating the CSR.
openssl req -text -noout -verify -in server.csr
Verify a certificate and key matchesThe following two commands will print out md5 sums of the certificate and key. These sums can be compared to verify that the certificate and key match.
openssl x509 -noout -modulus -in server.crt| openssl md5 openssl rsa -noout -modulus -in server.key| openssl md5