GNURLOPT_PROXY_SSLKEYTYPE(3)
π GNURLOPT_PROXY_SSLKEYTYPE(3) π
okay so bestie, welcome to the GNURLOPT_PROXY_SSLKEYTYPE(3) page β yes, itβs part of the curl_easy_setopt options manual, and weβre about to make proxy private-key types make sense. no cap.
π NAME π
CURLOPT_PROXY_SSLKEYTYPE - set type of the proxy private key file. thatβs the whole assignment, and it ate.
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SSLKEYTYPE, char *type);
π DESCRIPTION π
This option is for connecting to an HTTPS proxy, not an HTTPS server. the way that distinction matters β do not mix them up, bestie.
Pass a pointer to a null-terminated string as parameter. The string should be the format of your private key. Supported formats are "PEM", "DER" and "ENG".
The application does not have to keep the string around after setting this option β set it and forget it, literally. π
HTTPS proxy, not HTTPS server β thatβs the vibe check here, and this option passes.
π PROTOCOLS π
Used with HTTPS proxy. periodt.
π EXAMPLE π
hereβs the whole little setup, exactly as the page lays it out:
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEYTYPE, "PEM");
curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
π¦ AVAILABILITY π¦
Added in 7.52.0. iconic behavior since then, fr fr.
π₯ RETURN VALUE π₯
Returns CURLE_OK if TLS is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space. thatβs the whole status report, bestie.
π SEE ALSO π
xoxo, your fav manpage bestie π β this oneβs from libcurl 7.52.0, dated 16 Nov 2016.
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms