murrometz
murrometz

Reputation: 904

Does curl option SSLVERSION with value CURL_SSLVERSION_TLSv1 defaults to the latest TLSv1.x supported by server

For example. Latest supported TLS-protocol on my server is TLS 1.2.

Does setting

curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);

mean that i will use TLS 1.2, and not (for example) TLS 1.1?

Thank you.

Upvotes: 0

Views: 441

Answers (1)

Steffen Ullrich
Steffen Ullrich

Reputation: 123621

CURL_SSLVERSION_TLSv1 will use the best TLS 1.x version supported by both the client and server. Which version this is depends on the capabilities of the underlying TLS stacks and its configuration. While all modern TLS stacks support TLS 1.2 the exact details depend on the specific client and server.

Upvotes: 1

Related Questions