Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Windows schannel client certificate path broken in first call to curl_easy_perform #3480
We have used libcurl in our Windows application for HTTP REST APIs for a long time successfully. Now we are adding SSL client certificate authentication for a new REST API. While doing that, we encountered a bug where the certificate path set through
The issue is with the function
Result: the first call succeeds, every subsequent call returns with
To fix this, simply remove the following line:
schannel.c, get_cert_location(), line 395:
The above line is responsible for shortening the path as described above.
To work around this issue, set
It should only be necessary to set
libcurl 7.63.0 on Windows 10 1803