CURLOPT_SSLVERSION' and
CURLOPT_PROXY_SSLVERSION`you can specify which SSL or TLS protocol range that is acceptable to you. Traditionally SSL and TLS protocol versions have been found detect and unsuitable for use over time and even if curl itself will raise its default lower version over time you might want to opt for only using the latest and most security protocol versions.CURLOPT_SSL_CIPHER_LIST
and CURLOPT_PROXY_SSL_CIPHER_LIST
.CURLOPT_SSL_FALSESTART
, and there are a few other behavior changes to tweak using CURLOPT_SSL_OPTIONS
.CURLOPT_SSL_VERIFYPEER
controls the check that the certificate is signed by a trusted CA.CURLOPT_SSL_VERIFYHOST
controls the check for the name within the certificate.CURLOPT_PROXY_SSL_VERIFYPEER
is the proxy version of CURLOPT_SSL_VERIFYPEER
.CURLOPT_PROXY_SSL_VERIFYHOST
is the proxy version of CURLOPT_SSL_VERIFYHOST
.CURLOPT_PINNEDPUBLICKEY
or CURLOPT_PROXY_PINNEDPUBLICKEY
. Here too, a mismatch will cause the transfer to fail.CURLOPT_SSLKEY
and CURLOPT_SSLCERT
. The password for the key is usually also required to be set, with CURLOPT_SSLKEYPASSWD
.CURLOPT_PROXY_SSLKEY
, CURLOPT_PROXY_SSLCERT
etc.CURLOPT_TLSAUTH_USERNAME
and CURLOPT_TLSAUTH_PASSWORD
.CURLOPT_USE_SSL
option.