Check Key File, Using OpenSSL
From NetworkStuff
To check a public or private key file using OpenSSL use the openssl rsa command as shown below, a valid file will return a RSA key ok 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
RSA key ok
Related Articles
Information on OpenSSL Commands







