# ctest\_submit errors when sending https to experimental "self-signed" CDash server

**URL:** https://discourse.cmake.org/t/ctest-submit-errors-when-sending-https-to-experimental-self-signed-cdash-server/8861
**Category:** Usage
**Tags:** tool:ctest
**Created:** [September 1, 2023, 12:44pm UTC](https://discourse.cmake.org/t/ctest-submit-errors-when-sending-https-to-experimental-self-signed-cdash-server/8861 "2023-09-01T12:44:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dlrdave](https://discourse.cmake.org/user_avatar/discourse.cmake.org/dlrdave/32/2589_2.png) [@dlrdave](https://discourse.cmake.org/u/dlrdave)
#### Post date: [September 1, 2023, 12:44pm UTC](https://discourse.cmake.org/t/ctest-submit-errors-when-sending-https-to-experimental-self-signed-cdash-server/8861/1 "2023-09-01T12:44:39Z")

</div>

When attempting to send results to an experimental CDash server using ctest\_submit and an https URL, I am getting the following error message (which makes sense):

```auto
Error when uploading file:...
Error message was: schannel: SEC_E_UNTRUSTED_ROOT (0x80090325) - The certificate chain was issued by an authority that is not trusted.
Problems when submitting via HTTP

```

ctest version 3.26.3  
Windows (presumably same on other OSes)

The question is:  
Is there a way to force this submit to work without having a fully secure https server?  
Some var I can set to ignore this error?  
Some chain of trust I can add my certificate to?

I can’t get a real server name and a corresponding certificate until my experiment proves this is going to work right…

Thanks!

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [September 1, 2023, 1:29pm UTC](https://discourse.cmake.org/t/ctest-submit-errors-when-sending-https-to-experimental-self-signed-cdash-server/8861/2 "2023-09-01T13:29:54Z")

</div>

There are a number of places CMake allows for ignoring certificate validation; I’m not sure if this is one of them though.

You can try setting [`CMAKE_TLS_VERIFY`](https://cmake.org/cmake/help/latest/variable/CMAKE_TLS_VERIFY.html) to `0` in the relevant CTest script (no idea if/how you can affect the `ctest -D *Submit` mechanisms).

---

<div class="post-metadata">

### Author: ![dlrdave](https://discourse.cmake.org/user_avatar/discourse.cmake.org/dlrdave/32/2589_2.png) [@dlrdave](https://discourse.cmake.org/u/dlrdave)
#### Post date: [September 1, 2023, 4:42pm UTC](https://discourse.cmake.org/t/ctest-submit-errors-when-sending-https-to-experimental-self-signed-cdash-server/8861/3 "2023-09-01T16:42:24Z")

</div>

Thanks for the suggestion. Tried it, didn’t work, but then, I went to the source code.

Looked in the submit handler source file and found this chunk:

> <https://github.com/Kitware/CMake/blob/bf933b817397a2390d58e50490d2b69d6b57c794/Source/CTest/cmCTestSubmitHandler.cxx#L505-L507>

Then found this in the doc, pointing to `CurlOptions` and `CTEST_CURL_OPTIONS`  
[https://cmake.org/cmake/help/latest/manual/ctest.1.html#ctest-submit-step](https://cmake.org/cmake/help/latest/manual/ctest.1.html#ctest-submit-step)

Using this in my ctest -S script worked:

```auto
set(CTEST_CURL_OPTIONS CURLOPT_SSL_VERIFYPEER_OFF)

```

Thanks for the discussion. Now the next googler of ctest + “The certificate chain was issued by an authority that is not trusted” has a shot at finding a workaround quickly. 🙂
