From 3ede5f42be566d0c5acb882502bb458372c9bbb5 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 21 Jan 2022 22:09:34 -0500 Subject: [PATCH] Set curl to use the Windows cert store --- common/kicad_curl/kicad_curl_easy.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/kicad_curl/kicad_curl_easy.cpp b/common/kicad_curl/kicad_curl_easy.cpp index 28e3a616c5..ff2d58c6a2 100644 --- a/common/kicad_curl/kicad_curl_easy.cpp +++ b/common/kicad_curl/kicad_curl_easy.cpp @@ -128,6 +128,11 @@ KICAD_CURL_EASY::KICAD_CURL_EASY() : // Only allow HTTP and HTTPS protocols curl_easy_setopt( m_CURL, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS ); + #ifdef _WIN32 + // We need to this to allow using the Windows Certificate store + curl_easy_setopt( m_CURL, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA ); + #endif + wxPlatformInfo platformInfo; wxString application( Pgm().App().GetAppName() ); wxString version( GetBuildVersion() );