Re: Custom certificate extensions CSR / cert creation: Missing field

2007-05-10 Thread Christopher Kunz
Hello, I have isolated the problem to the private key that seems to be incorrectly generated. When I take my self-created certificate and my self-created RSA key and try to convert them to PKCS#12, the following error occurs: [EMAIL PROTECTED] kunz]$ openssl pkcs12 -export -in testcert.pem

Re: Custom certificate extensions CSR / cert creation: Missing field

2007-05-10 Thread Goetz Babin-Ebell
Hello Christopher, --On Mai 10, 2007 11:29:25 +0200 Christopher Kunz [EMAIL PROTECTED] wrote: I have isolated the problem to the private key that seems to be incorrectly generated. [...] -BEGIN RSA PRIVATE KEY- MIGKAgEAAoGBAJHprxsQfCcjF85LdJfDfSuudh/TuLCoLWgSTBnLJ8e98RmchH0Q

Re: Custom certificate extensions CSR / cert creation: Missing field

2007-05-10 Thread Christopher Kunz
Goetz Babin-Ebell schrieb: The key is somehow wrong, but how? And why? It contains only the public part of the key. The private part seems to get lost in between... You are so right. In the course of my copypaste work of art, I reassigned pkey with... guess what? The certificate's public

Custom certificate extensions CSR / cert creation: Missing field

2007-05-09 Thread Christopher Kunz
Hi, I am using the examples from the O'Reilly book Network Security with OpenSSL (X.509 section) to create a CSR, push a custom extension into it and sign that CSR with a given private key. This - in general - works OK, but when I want to use the resulting certificate chain (I have the signing

Re: Custom certificate extensions CSR / cert creation: Missing field

2007-05-09 Thread Dr. Stephen Henson
On Wed, May 09, 2007, Christopher Kunz wrote: I wrote an extremely simple program to check what might be wrong with the certificate stack and this seems to be the problem: 15939:error:0D078079:asn1 encoding routines:ASN1_ITEM_EX_D2I:field missing:tasn_dec.c:391:Field=d, Type=RSA

Re: Custom certificate extensions CSR / cert creation: Missing field

2007-05-09 Thread Christopher Kunz
Dr. Stephen Henson schrieb: Hmmm that error shouldn't be encountered when you load a certificate. It suggests that you have an RSA private key but that it is in an invalid format. I forgot to mention that openssl x509 -text -noout -in mycertchain.pem does produce valid output, and seems to

Re: Custom certificate extensions CSR / cert creation: Missing field

2007-05-09 Thread Dr. Stephen Henson
On Wed, May 09, 2007, Christopher Kunz wrote: Dr. Stephen Henson schrieb: Hmmm that error shouldn't be encountered when you load a certificate. It suggests that you have an RSA private key but that it is in an invalid format. I forgot to mention that openssl x509 -text -noout -in