Check Key File, Using OpenSSL
From RZWiki
To check a public or private key file using OpenSSL;
PEM, NET DER
Use the openssl rsa command as shown below, a valid file will return a font color=blueRSA key ok/font message;
Valid file formats are;
- PEM
- NET
- DER
The -noout parameter prevents the actual key from being displayed.
openssl rsa -inform PEM -in networkstuff.eu.key -noout -check
font color=blueRSA key ok/font
PKCS#12
Use the openssl pkcs12 command as shown below, a valid file will return a font color=blue????/font message;
openssl pkcs12 -info -in networkstuff.eu.key -noout
Related Articles
Other OpenSSL articles
Information on OpenSSL Commands
(replacing the # with an @) |






