> Hi,
>
> You should you generate an X509 certificate and then try to read the
private key with PEM_read_PrivateKey. What does the key that you are
trying to load look like? Could it be that you are reading in the
certificate in place of the key?
>
> Also, I don't know much about perror, butOpenSSL has its own error
function to help you determine if OpenSSL is encountering any errors.
Consider using ERR_print_errors_fp to determine if OpenSSL is
> encountering any errors (http://www.openssl.org/docs/crypto/
> ERR_print_errors.html#).

Hi,

the output of ERR_print_errors prints a message I dont understand:
18171:error:0906B072:lib(9):func(107):reason(114):pem_lib.c:481:

My private key is for testing my routine only though here it is:

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,731DA7CE59042744

+IyLelmxFc08egtoHkIjRXyCYAYEYJJumHuotIjy5AWEhE8vtudTRfzbWrlALmDt
jODDIo7AGPC6PE0DcBHruCno6/Rkvngokqr+2zjne1sllLqo/41SUaSEcKKByvt0
6gJTFCj+zbPLj+aRUb3C6ktXDyBRq1swYsfDgf8ooH4/eqZ3Fm1iHMbglZJPpkuV
lC8Uip/7LUze6iAlJspQuA91d/H53oIbjz30KnYfBPWTALrEgqAU0kV/TYzhVowJ
YA47ybuEtzOk+mq6g8Z791lKFk/LlNJ5hvN4sSJyVA4hv2gLYikrJwKcAmVUXVnR
LJoz3CWDQapuA+3VGF76wOEULMUQ5NStGEEldWzF+D8vK/svRl996UMXCYdME/tH
FyBXzGntkh9N7s9KSdP5Nb6Hpf/si9ivpAuMkwCfeoep/hN/2WEe2wuVTEbXy0Xm
BCIWp6/6MMrZx3siMaifSYSaZGm68U/sMa118FTKTcdkSdPel4oW4w7zcowIfaYy
dK/DB8p3Bk7nAIgTKSWbs3w8fdLNtmj88dt9RdZ+wPCZ+y510UEnssfMKNGAVpGU
XfMR42dvAwqPgrxQl9DMbZk36Qnrx7/vaZ+3cUz2eApASdVJyV1HJEh7fbYt25/P
05TZiS649/5+GDpSF5bZwZO/u4ydSAI5EoreN9KmtMgDsnavnfjio55/WuWuEWH1
7xrCR88of0lHJyvb2fWDnHbxCwOLcgurmcMH/qcQFFk2VsXbmWWSTg2n+Pd2ADk1
rJAazSG24ax1CJZ+sIWsJEm8O0Cj2GyleqFKzMikcpoRbNkelMTT0Q==
-----END RSA PRIVATE KEY-----

this is a private key or am I wrong ?

Ciao
   Matthias



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

Reply via email to