-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSLCertVerificationError with self-signed certificates #23
Comments
Thanks @mrtnbrst for moving this forward! I'm a bit confused about your use case though. I thought that you wanted to use self-signed repositories. What's preventing you from using TLS when downloading Conda/Mamba? Or are you working in an entirely offline environment where you need to mock all external services? |
I'm working online from within a company network. My company as many others uses self-signed certificates in combination with an intercepting / filtering HTTPS proxy. For pip / conda / npm / poetry or similar tools there is a setting for disabling such certificate checks. This python-poetry/poetry#1556 solved poetry issue describes exactly the same problem and the solution to apply. |
If your company has the infrastructure to have an intercepting and filtering HTTPS proxy, then I would expect that you should be setting How do you configure web browsers in the company? Do you disable TLS verification in the web browser as well? |
The browser is managed by the infrastructure staff and comes with the certificates already configured |
I think that will be both more secure and way easier. In case that doesn't work then let me know and we can figure out some alternative. |
I didn't manage to get it to work with certificates. |
The current version of requests does not allow disabling the verification of the SSL certificats globally. In prior versions this behaviour could be set with an environment variable. Now you have to use the
verify=False
argument: https://requests.readthedocs.io/en/latest/user/advanced/#ssl-cert-verification.The verification can fail in case of self-signed certificates (psf/requests#6074).
I'm facing this issue when using the package
conda-lock
, which has theensureconda
package as a dependency: conda/conda-lock#519.What do you think about adding a flag to the CLI?
I can add a PR, but I am still unsure about the name of the CLI argument.
@maresb suggested
--insecure-skip-tls-verify
for theconda-lock
project.Any objections to adding such an argument to this project?
The text was updated successfully, but these errors were encountered: