May I ask how do I handle this situation

Jul 16, 2015 at 4:28 PM
Hello sir
May I know how to handle the case like this: I just need the clue, may I know how to search the information like this,how do i communicate a web api which secured by self signed certificate?iI builded a self-sign certificate in iis 7for testing,the rest sdk can't communicate with that web api,it occured the exception,any idea?
Regards
Ken
Coordinator
Jul 17, 2015 at 5:46 PM
Hi Ken,

By default our library performs full server certificate verification. It is possible if you want to turn off the server certificate verification, but I strongly recommend being careful if you decide to do so. You can construct the http_client with an http_client_config instance with server verification turned off using the http_client_config::set_validate_certificates(false).

Steve
Marked as answer by roschuma on 8/21/2015 at 7:06 PM
Jul 19, 2015 at 1:18 AM
Edited Jul 19, 2015 at 1:18 AM
hello sir
thank you for replying,i have resolved this problem ,i bought a ssl certificate for the web api,then the problem has been resolved,thank you
regards
Ken