Handle Self-Signed Certificate

63 views
Skip to first unread message

Kyle Cummings

unread,
Nov 12, 2014, 4:50:23 PM11/12/14
to cur...@googlegroups.com
I am making a request between servers and I am getting a server certificate verification failure / self-signed certificate failure. As the servers are currently development servers, and I do not care about self-signed certificates just yet, how do I tell the curlpp library to ignore such an "error"?

For reference (if needed), I am currently working off the example04.cpp code.

M Vladymyrov

unread,
Nov 13, 2014, 2:32:09 AM11/13/14
to cur...@googlegroups.com

Mb just add the top cert to trusted list?

On Nov 13, 2014 7:16 AM, "Kyle Cummings" <cumming...@gmail.com> wrote:
I am making a request between servers and I am getting a server certificate verification failure / self-signed certificate failure. As the servers are currently development servers, and I do not care about self-signed certificates just yet, how do I tell the curlpp library to ignore such an "error"?

For reference (if needed), I am currently working off the example04.cpp code.

--
You received this message because you are subscribed to the Google Groups "curlpp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to curlpp+un...@googlegroups.com.
To post to this group, send email to cur...@googlegroups.com.
Visit this group at http://groups.google.com/group/curlpp.
For more options, visit https://groups.google.com/d/optout.

Jean-Philippe Barette-LaPierre

unread,
Nov 13, 2014, 2:41:15 AM11/13/14
to cur...@googlegroups.com
This is more a libcURL-related question. cURLpp is a C++ wrapper around libcURL, so you should send your question to libcURL to have a broader audience. 

Kyle Cummings

unread,
Nov 13, 2014, 1:07:07 PM11/13/14
to cur...@googlegroups.com
I eventually found out how to do this.

curlpp::Easy request;
request
.setOpt(curlpp::options::SslVerifyPeer(false));
request
.setOpt(curlpp::options::SslVerifyHost(false));
Reply all
Reply to author
Forward
0 new messages