Verify that an SSL certificate matches the private key, 19.01.2014 13:32
When renewing certificates it is a good idea to verify that the newly installed SSL certificate matches the newly installed private key (eg. to make sure no mixup between the new and old files occurred).
This can be done by comparing the modulus of the two files:
openssl x509 -in <certificatefile> -noout -modulus|sha1sum openssl rsa -in <privatekeyfile> -noout -modulus|sha1sum