OpenSSL Ignore Self-signed certificate error

Posted by Ramsey on Stack Overflow See other posts from Stack Overflow or by Ramsey
Published on 2010-02-13T08:29:31Z Indexed on 2010/05/08 21:28 UTC
Read the original article Hit count: 182

Filed under:
|
|
|
|

I'm writing a small program with the OpenSSL library that is suppose to establish a connection with an SSLv3 server. This server dispenses a self-signed certificate, which causes the handshake to fail with this message: "sslv3 alert handshake failure, self signed certificate in certificate chain."

Is there a way I can force the connection to proceed? I've tried calling SSL_CTX_set_verify like so:

SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL);

But it does not seem to change anything.

Any suggestions?

© Stack Overflow or respective owner

Related posts about c++

Related posts about openssl