From 673b6c8cb81560b296032493484a1d3f0264e001 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Thu, 31 Jul 2025 15:13:23 -0400 Subject: [PATCH] schannel: add an error message for client cert not found 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c index 27aceaba81..0b3ec8cc25 100644 --- a/lib/vtls/schannel.c +++ b/lib/vtls/schannel.c @@ -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; } } -- 2.47.3