SSL Certificate Verification Error when Creating Conda Environment

Hello Anaconda Community,

I’m experiencing an issue with Anaconda when trying to create a new conda environment. I’ve recently installed Anaconda, and I’m running into SSL certificate verification problems that prevent me from creating environments or downloading packages.

Here’s the error message I’m encountering:

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: unable to get local issuer certificate (_ssl.c:1129)’)))

I have tried to address this issue by downloading a certifi.pem file and pointing Anaconda to it, but the problem persists.

I’m using Anaconda on a Windows system, and I would appreciate any guidance or suggestions on how to resolve this SSL certificate verification error so that I can create and manage conda environments without issues.

Thank you in advance for your help!

1 Like

Hello,

This kind of error message can occur when your company uses a proxy and you need to configure conda to use a proxy.

For issues surrounding, and instructions for, correctly installing SSL Certificate

You can either turn off SSL configuration:
conda config --set ssl_verify false

or add a certificate and let conda know where it is located:

conda config --set ssl_verify <pathToYourFile>.crt

Did you try configuring the SSL cert for conda this way, or some other way?
1 Like

If you are behind a company proxy, you want to edit the .condarc file as follows(for example):

proxy_servers:
http: http://username:[email protected]:8080
https: https://username:[email protected]:8080

I am running into the same issue. I am new to the software, and have recently installed, and working through the tutorials.

Here is what prompted the error:
(example) C:\Users<myuseraccount>>conda install jupyterlab dask pandas hvplot
Collecting package metadata (current_repodata.json): failed

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(“Can’t connect to HTTPS URL because the SSL module is not available.”))

Where “” refers to my username on my computer

I attempted: conda config --set ssl_verify false

but get the same error message. Where does one find if an agency proxy is the issue?

Correction:
The format of the ‘proxy_server’ information is not quite correct. The entries need to be indented.

See this link:
https://docs.anaconda.com/free/working-with-conda/configurations/proxy/

I was running into the same issue. Disconnected from employer vpn and was able to work normally.

Hi! I ran into the same issue trying to do some development work on my company laptop. The company uses Zascaler and apparently its modifying the SSL certificate. The easiest solution for me was to download the certificate and tell anaconda where to find it in the preferences menu. It seems every web browser is slightly different but the principle is the same to download the cert you click on this icon in the browser (next you where you enter in URLS):
image

Then there will be an option related to security . For chrome under the current version of the browser it just says “connection is secure” but if you click on it then another mini menu will pop up at the bottom of that little menu is an selection that says “Certificate is valid” from there you will get a popup menu, navigate to the tab “Details”, and select “Export” in the bottom right of the menu (NOTE: some stack overflow posts mentioned to highlight the “root” one before exporting but im not totally sure you need to). You export it will save the file as a .crt file typically. Save a copy of this file if you are planning on doing some development work as I also needed it in a .pem file (you can just save it as a .pem extension if you do), to make API calls.

From there you can open up anaconda go to “File → Preferences” or hit “ctl + P” in there is an option to specify the path to an SSL certificate, copy the full file path to the certificate you saved from your browser and then you should be able to make an anaconda environment.

Hope that helps

1 Like

Thanks, Eli’s tip works like a charm. I am using Anaconda Navigator 2.6.3