openssl - Use RSA private key to generate public key? - Stack Overflow
The Public Key is not stored in the PEM file as some people think. The following DER structure is present on the Private Key File: RSAPrivateKey ::= SEQUENCE { version Version, modulus INTEGER, -- n publicExponent INTEGER, -- e ......