Skip to content

Conversation

@G4m4
Copy link

@G4m4 G4m4 commented Jan 14, 2026

In case of an "error 35" status ("SSL connect error"), retry downloading with TLS verify turned off.

We still expect the same hash.

…ith TLS verify turned off (cpm-cmake#685)

The hash of the file still gets verified for safety
@G4m4 G4m4 changed the title Workaround for #685 Workaround for #685: retry download failed due to TLS Jan 14, 2026
Copy link
Member

@TheLartians TheLartians left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I'm not sure about this one, automatically retrying with disabled TLS verification does seem rather dodgy (we might as well just turn it off from the start).
Where does the error come from? If it's a proxy issue on your side, would it be a an option for you to just set CMAKE_TLS_VERIFY=OFF on your system instead?

@G4m4
Copy link
Author

G4m4 commented Jan 18, 2026

Yes, of course I understand that feeling, but the fact that the hash is still checked should prevent file tampering.

I have not been able to get to the root cause of this for my own case (and to be honest I do not think it is completely worth it considering the workaround is easy) but there are multiple examples of similar cases:
microsoft/vcpkg#13368
https://gitlab.kitware.com/cmake/cmake/-/issues/24093

It all seems to relate to various combination of SSL library or softwares using it, and on Windows the typical "update your system" fix is not so easily done as a on e.g. Linux distros.

Of course if you feel like this is not a good idea we would indeed disable this locally, but some developer end users might get the same behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants