Anaconda Prompt is having an issue with SSL certificates

I wanted to create a virtual environment in conda prompt:

conda create --name name_of_venv

I am getting error:

Collecting package metadata (current_repodata.json): done Solving environment: done

CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.

Exception: HTTPSConnectionPool(host=‘repo.anaconda.com’, port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’)))

The same error I get with anaconda navigator too.

2 Likes

I’m getting the same error for a fresh Anaconda 2023.03-1 install on Windows x86_64.
I’ve tried copying the openssl and crypto dlls from Library/bin to DLLs with no success.

conda search conda

yields

CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.

Exception: HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))
1 Like

I got this issue without any changes to my conda installation. I’m on 24.7.1.

I don’t even understand: Is the self-signed certificate supposed to be on my side (I didn’t install any) or on the remote end (then why doesn’t everybody have this problem?)?