Hi all!

I've got a problem parsing the CA's private key file generated by the 
utility CA.pl. When CA.pl wants to read the private key of the CA 
(/demoCA/private/cakey.pem) and I enter the _correct_ PEM pass phrase I 
always get the following error:

#> /usr/ssl/misc/CA.pl -sign
Using configuration from /usr/ssl/openssl.cnf
Enter PEM pass phrase:
unable to load CA private key
21286:error:0D09D082:asn1 encoding 
routines:d2i_RSAPrivateKey:parsing:d2i_r_pr.c:116:
21286:error:0D09B00D:asn1 encoding routines:d2i_PrivateKey:ASN1 
lib:d2i_pr.c:89:
21286:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:pem_lib.c:290:

The same when i call

#> openssl rsa -in demoCA/private/cakey.pem -check
read RSA key
Enter PEM pass phrase:
unable to load key
21298:error:0D09D082:asn1 encoding 
routines:d2i_RSAPrivateKey:parsing:d2i_r_pr.c:116:
21298:error:0D09B00D:asn1 encoding routines:d2i_PrivateKey:ASN1 
lib:d2i_pr.c:89:
21298:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:pem_lib.c:290:

The private key file was created by CA.pl and I succseeded once to 
create and sign a certificate whith the newly created CA. But the second 
attempt to do so failed with the above error.

Any ideas?

cu
_lot_



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to