# TLS version mismatch

**URL:** https://discourse.cmake.org/t/tls-version-mismatch/7350
**Category:** Usage
**Tags:** os:windows
**Created:** [January 28, 2023, 10:42pm UTC](https://discourse.cmake.org/t/tls-version-mismatch/7350 "2023-01-28T22:42:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sven](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/e47c2d/32.png) [@Sven](https://discourse.cmake.org/u/Sven)
#### Post date: [January 28, 2023, 10:42pm UTC](https://discourse.cmake.org/t/tls-version-mismatch/7350/1 "2023-01-28T22:42:30Z")

</div>

I try to Download googletest cia my cmake project, but i have trouble connecting to github:

```auto
include(FetchContent)

FetchContent_Declare(
  googletest
  GIT_REPOSITORY https://github.com/google/googletest.git
  GIT_TAG release-1.8.1
)

FetchContent_MakeAvailable(googletest)

```

```auto
Performing download step (git clone) for 'googletest-populate'
  Cloning into 'googletest-src'...
  fatal: unable to access 'https://github.com/google/googletest.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
  Cloning into 'googletest-src'...
  fatal: unable to access 'https://github.com/google/googletest.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
  Cloning into 'googletest-src'...
  fatal: unable to access 'https://github.com/google/googletest.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

```

My local git client can clone that repository, to i think cmake is using his own git implementation, but i have currently no idea how i can tell cmake to support newer tls versions.

I hope someone can help me with this problem. Via google i haven’t found any real solutions.

---

<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: [January 29, 2023, 1:25pm UTC](https://discourse.cmake.org/t/tls-version-mismatch/7350/2 "2023-01-29T13:25:33Z")

</div>

`cmake` just uses `git` from `PATH`; it doesn’t ship its own implementation. There’s probably a `find_program` happening somewhere though. Do you see the expected value in `GIT_EXECUTABLE` in `CMakeCache.txt`?

---

<div class="post-metadata">

### Author: ![Sven](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/e47c2d/32.png) [@Sven](https://discourse.cmake.org/u/Sven)
#### Post date: [January 29, 2023, 8:03pm UTC](https://discourse.cmake.org/t/tls-version-mismatch/7350/3 "2023-01-29T20:03:31Z")

</div>

Oh yea,

I removed a very old GitHub application i tested years ago.

Now it works using the normal git client.  
Thanx for this hint.
