I am trying to use this github template to set up a project. However, when trying to find dependencies, I obtain the following error message:

catch2/2.13.7: Not found in local cache, looking in remotes...ERROR: Failed requirement 'catch2/2.13.7' from 'conanfile.py (CppStarterProject/0.1)'ERROR: HTTPSConnectionPool(host='center.conan.io', port=443): Max retries exceeded with url: /v1/ping (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))Unable to connect to cci=https://center.conan.io1. Make sure the remote is reachable or,2. Disable it by using conan remote disable,Then try again.CMake Error at build/conan.cmake:631 (message):Conan install failed='1'Call Stack (most recent call first):cmake/Conan.cmake:47 (conan_cmake_install)CMakeLists.txt:66 (run_conan)

When trying to ping center.conan.io It seems to be online and https://downforeveryoneorjustme.com/center.conan.io?proto=https does say that it is up.

What I am missing?

1

Best Answer


Conan seems to sometimes not update it's certificate authorities (probably if you've manually edited them). Make sure you are using the latest Conan version and delete cacert.pem from the .conan directory in your home folder, re-running Conan should then generate an updated cacert.pem with the latest authorities.