You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TLS version "or later" doesn't work for schannel and Secure Transport as it works with OpenSSL #2969
I'm using this option https://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html
For me it works as specific version setters - does not go upwards, even if the server supports it. For example:
CURL_SSLVERSION_TLSv1 -> this default options works with 1.0 1.1 1.2 1.3 (probably future proof for 1.4 and so on)
CURL_SSLVERSION_TLSv1_0 -> this option only works with 1.0 . It fails with a server that only supports 1.1, 1.2 or 1.3
currently CURL_SSLVERSION_TLSv1 supports TLS 1.0 , 1.1 , 1.2 , 1.3
currently CURL_SSLVERSION_TLSv1_0 supports TLS 1.0
currently CURL_SSLVERSION_TLSv1_1 supports TLS 1.1
currently CURL_SSLVERSION_TLSv1_2 supports TLS 1.2
currently CURL_SSLVERSION_TLSv1_3 supports TLS 1.3
I expected the following
I expect CURL_SSLVERSION_TLSv1 to support TLS 1.0 , 1.1 , 1.2 , 1.3
I expect CURL_SSLVERSION_TLSv1_0 to support TLS 1.0 , 1.1 , 1.2 , 1.3
I expect CURL_SSLVERSION_TLSv1_1 to support TLS 1.1 , 1.2 , 1.3
I expect CURL_SSLVERSION_TLSv1_2 to support TLS 1.2 , 1.3
I expect CURL_SSLVERSION_TLSv1_3 to support TLS 1.3
curl/libcurl version
WinSSL -> libcurl/7.61.1-DEV WinSSL
and also DarwinSSL(iOS) -> libcurl/7.61.1-DEV SecureTransport zlib/1.2.8
NOTE: Works as expected with openSSL, only works badly with WinSSL and darwinSSL(iOS)
changed the title [-]TLS version "or later" doesn't work for schannel as it works with OpenSSL [/-][+]TLS version "or later" doesn't work for schannel and Secure Transport as it works with OpenSSL [/+]on Sep 13, 2018
I can't reproduce this. What server are you having this problem with and what commit are you using? For example curl --tlsv1.0 -v https://github.com and I get a handshake version of 1.2 and a successful connection. Note for schannel we haven't enabled TLS 1.3 yet.
@jay is that with SChannel? With Secure Transport on git head I get failures to connect on --tlsv1.0 and --tlsv1.1, --tlsv1.2 and --tlsv1.3 both give me a 1.2 handshake and successful connection?
oops yes. Not sure what's going on with Secure Transport, the code looks correct but I don't run mac. Check in wireshark and see what it's sending for handshake version in the fail case.
My results yesterday were erroneous I can reproduce this in schannel, curl --tlsv1.0 https://github.com shows a handshake of TLS 1.0. The only thing I can figure is at the time something else must have made a connection to github, and I clicked on that ClientHello in wireshark by mistake. It looks like all SSL backends except OpenSSL still use the old behavior of setting the requested SSL version as the minimum and the maximum. This is addressed in #3012 which incorporates @danielgustafsson's fix.
Activity
bagder commentedon Sep 10, 2018
Duplicate of #2691
This was fixed in #2694, released in curl 7.61.0
programuotojasgf commentedon Sep 11, 2018
This is not fixed. I've updated the issue, to denote, that it works with openSSL, but does not work with WinSSL
[-]TLS version option[/-][+]TLS version "or later" doesn't work for schannel as it works with OpenSSL [/+][-]TLS version "or later" doesn't work for schannel as it works with OpenSSL [/-][+]TLS version "or later" doesn't work for schannel and Secure Transport as it works with OpenSSL [/+]lietusme commentedon Sep 17, 2018
Any timeframe when this could be expected to be fixed and released?
bagder commentedon Sep 17, 2018
No.
jay commentedon Sep 17, 2018
I can't reproduce this. What server are you having this problem with and what commit are you using? For example
curl --tlsv1.0 -v https://github.comand I get a handshake version of 1.2 and a successful connection. Note for schannel we haven't enabled TLS 1.3 yet.danielgustafsson commentedon Sep 17, 2018
@jay is that with SChannel? With Secure Transport on git head I get failures to connect on
--tlsv1.0and--tlsv1.1,--tlsv1.2and--tlsv1.3both give me a 1.2 handshake and successful connection?jay commentedon Sep 17, 2018
oops yes. Not sure what's going on with Secure Transport, the code looks correct but I don't run mac. Check in wireshark and see what it's sending for handshake version in the fail case.
/cc @nickzman
danielgustafsson commentedon Sep 17, 2018
I will do some digging tomorrow to see whats going on.
darwinssl: make requested TLS version the minimum
danielgustafsson commentedon Sep 18, 2018
I have a proposed bugfix for Secure Transport in #3010, please that patch @lietusme and @programuotojasgf.
jay commentedon Sep 18, 2018
My results yesterday were erroneous I can reproduce this in schannel,
curl --tlsv1.0 https://github.comshows a handshake of TLS 1.0. The only thing I can figure is at the time something else must have made a connection to github, and I clicked on that ClientHello in wireshark by mistake. It looks like all SSL backends except OpenSSL still use the old behavior of setting the requested SSL version as the minimum and the maximum. This is addressed in #3012 which incorporates @danielgustafsson's fix.lietusme commentedon Sep 21, 2018
Thanks! I assume this fix will be released on October 31, 2018 timeframe only? https://curl.haxx.se/dev/release-procedure.html
bagder commentedon Sep 21, 2018
@lietusme correct, but you can also verify/test/play with it using a daily snapshot.