Comment 3 for bug 1756844

Revision history for this message
Scott Kitterman (kitterman) wrote :

The RSA private key structure (RFC 8017, Appendix A.1.2) is:

   RSAPrivateKey ::= SEQUENCE {
       version Version,
       modulus INTEGER, -- n
       publicExponent INTEGER, -- e
       privateExponent INTEGER, -- d
       prime1 INTEGER, -- p
       prime2 INTEGER, -- q
       exponent1 INTEGER, -- d mod (p-1)
       exponent2 INTEGER, -- d mod (q-1)
       coefficient INTEGER, -- (inverse of q) mod p
       otherPrimeInfos OtherPrimeInfos OPTIONAL
   }

This key is:

SEQUENCE {
INTEGER
IA5String
PrintableString
}

I don't think this is a valid RSA private key.