Skip to content

Add CMAKE_TLS_VERIFY environment variable for TLS server verification default

Brad King requested to merge brad.king/cmake:tls-verify into master

In contexts that do not specify an explicit TLS_VERIFY option or CMAKE_TLS_VERIFY/CTEST_TLS_VERIFY cmake variable, provide a way for users to control TLS server certificate verification without modifying projects.

In !9290 (merged), !9296 (merged), and !9318 (merged) we added support for a CMAKE_TLS_VERSION environment variable to file(DOWNLOAD|UPLOAD), ExternalProject, and ctest. Follow their pattern to add a CMAKE_TLS_VERIFY environment variable too.

Issue: #23608

Merge request reports