file(DOWNLOAD): 3.25.0-rc4 fails https verification on Windows
As reported on discourse, the code
set(CMAKE_TLS_VERIFY true)
file(REMOVE ${CMAKE_CURRENT_LIST_DIR}/cmake-3.24.3-SHA-256.txt)
file(DOWNLOAD https://github.com/Kitware/CMake/releases/download/v3.24.3/cmake-3.24.3-SHA-256.txt ${CMAKE_CURRENT_LIST_DIR}/cmake-3.24.3-SHA-256.txt STATUS ret LOG log)
message(STATUS "ret: ${ret}
${log}")
fails to download using CMake 3.25.0-rc4. It works with 3.24. Differences in the output include:
1c1
< -- ret: 0;"No error"
---
> -- ret: 56;"Failure when receiving data from the peer"
20c20
< user-agent: curl/7.83.1
---
> user-agent: curl/7.86.0
22a23,28
> schannel: remote party requests renegotiation
> schannel: renegotiating SSL/TLS connection
> schannel: SSL/TLS connection renegotiated
> schannel: remote party requests renegotiation
> schannel: renegotiating SSL/TLS connection
> schannel: SSL/TLS connection renegotiated