restclient-cpp icon indicating copy to clipboard operation
restclient-cpp copied to clipboard

Disable SSL peer validation

Open edwinpjacques opened this issue 4 years ago • 1 comments

There should be a way to disable SSL verification to authenticate with bearer tokens.

Something like this would do:

// set a non-existing file for the CA file, should allow access anyway conn->SetCAInfoFilePath("non-existent file"); conn->SetVerifyPeer(false); RestClient::Response res = conn->get("/get");

EXPECT_EQ(200, res.code);

edwinpjacques avatar Feb 23 '21 04:02 edwinpjacques