Skip to content

Conversation

ewnprn112
Copy link

This change fixes cURL error 77 (“error setting certificate verify locations”) on Windows when CA/cert paths contain non-ASCII characters (e.g., accents). Previously, char* options were encoded as UTF-8, causing libcurl to fail opening files on Windows ANSI APIs.

Changes:

  • Encode path-like options (CAINFO, CAPATH, PROXY_CAINFO, PROXY_CAPATH, SSLCERT, SSLKEY, CRLFILE, ISSUERCERT, SSH_PUBLIC_KEYFILE, SSH_PRIVATE_KEYFILE, COOKIEFILE, COOKIEJAR, NETRC_FILE, UNIX_SOCKET_PATH) using locale.getpreferredencoding on Windows. Other platforms unchanged.

HTTPS requests now work when the CA bundle or other certificate-related paths include non-ASCII characters.

@lexiforest
Copy link
Owner

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants