SSL_CTX_use_PrivateKey_file fail on Linux (part 2)

Posted by Fredrik Ullner on Stack Overflow See other posts from Stack Overflow or by Fredrik Ullner
Published on 2010-02-10T14:29:49Z Indexed on 2010/04/19 6:43 UTC
Read the original article Hit count: 436

Filed under:
|
|

For some reason, my calls to OpenSSL's SSL_CTX_use_PrivateKey_file have started to fail (again) on Ubuntu. My previous post concerning this function; http://stackoverflow.com/questions/2028862/ssl-ctx-use-privatekey-file-fail-under-linux

With the above fix, I have been able to use things fine until a couple of days ago. I have no idea why. The error string I'm now getting is error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib with 336265225 as error code. What is the problem?

Additional info: The file passed to the function exist (SSL_CTX_use_certificate_file is passed the same file). The code in the callback function for the password is also not called (at least apparantly not according to the debugger). Everything works fine on Windows.

© Stack Overflow or respective owner

Related posts about openssl

Related posts about c++