Check that SSL (X509) certificate matches it's private key
This tiny utility uses Open SSL to verify that:
- input string or file is a valid PEM-encoded X509 certificate
- input string or file is a valid PEM-encoded RSA private key
- PEM-encoded X509 certificate matches PEM-encoded private RSA key
- RSA private key is not encrypted with DES3 (does not require passphrase)
Usage
var ssl = ; var certPem = fs;var keyPem = fs; ssl; // or read directly from files (feeding them to openssl): ssl;