3 ms·
You may have to remove the === BEGIN/END blah === header and run the result through 'base64 -d' first. openssl asn1parse (-text or -dump I forget) -inform
by marshray 14y ago
You may have to remove the === BEGIN/END blah === header and run the result through 'base64 -d' first.
openssl asn1parse (-text or -dump I forget) -inform (pem or der) -in [filename]
The private key should list 'P', 'Q', and the 'modulus'. If the modulus is the same as in the public key, it's the same.