restclient-cpp
restclient-cpp copied to clipboard
Disable SSL peer validation
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);