Re: Check the private key

2010-08-21 Thread Ingo Naumann
Hi Mounir, > As you can see from the ASN.1 dump, it starts with the version, followed by > the algorithm identifier and then the RSAPrivateKey encoding inside an > OctetString. Yes, you are right, of course. The structure I was referring to is the one inside. > Concerning Vladimir's question, th

Re: Check the private key

2010-08-20 Thread Mounir IDRASSI
Hi Ingo, You are mistaken : this keys is not an encoded RSAPrivateKey as defined by PKCS#1 but it's an encoded PrivateKeyInfo as defined in PKCS#8. Here is the ASN.1 definitions : PrivateKeyInfo ::= SEQUENCE { version Version, privateKeyAlgorithm AlgorithmIdentifier {{PrivateKeyAlgorithm

Re: Check the private key

2010-08-20 Thread Ingo Naumann
Vladimir, To me, your key looks like a standard 1024 RSA private key, in PKCS#1 format (see below). And, I'm getting the same error when I type openssl rsa -check http://www.rsa.com/rsalabs/node.asp?id=2125 RSAPrivateKey ::= SEQUENCE { version Version, modulus

Re: Check the private key

2010-08-19 Thread Christian Hohnstaedt
Hi Vladimir, $ openssl asn1parse > Hi, > > I've got private key file priv.key with the following contents > > -BEGIN RSA PRIVATE KEY- > MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMXxTv8clwKiAqHH > oI3mn53v1VaH17K/o3toc040pF7+QYY+Pn1Vb53xQtb7zCe7DNPGyA5AylP4WoHi > kBiolMASchWYDxyi