]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
schannel: add an error message for client cert not found
authorJay Satiro <raysatiro@yahoo.com>
Thu, 31 Jul 2025 19:13:23 +0000 (15:13 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 8 Aug 2025 07:43:54 +0000 (03:43 -0400)
Prior to this change curl would show the generic error message
"curl: (58) Problem with the local SSL certificate".

Closes https://github.com/curl/curl/pull/18124

lib/vtls/schannel.c

index 27aceaba816f3fc9ca762abd5049a3f2708c22ba..0b3ec8cc25c8e2fdf5a1e468fa4aa3e134222612 100644 (file)
@@ -730,6 +730,7 @@ schannel_acquire_credential_handle(struct Curl_cfilter *cf,
       if(!client_certs[0]) {
         /* CRYPT_E_NOT_FOUND / E_INVALIDARG */
         CertCloseStore(cert_store, 0);
+        failf(data, "schannel: client cert not found in cert store");
         return CURLE_SSL_CERTPROBLEM;
       }
     }