开发者

SSL_CTX_use_PrivateKey_file fail on Linux (part 2)

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; SSL_CTX_use_PrivateKey开发者_JAVA百科_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.


Possible cause: CRLF instead of LF EOLs in the PEM file. It should work on Windows and might not have worked on Linux. Now you upgraded your OpenSSL, maybe the new version can process CRLF on Linux.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜