Skip to content
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

SSL: CERTIFICATE_VERIFY_FAILED with urllib 1.25.4 #5204

Closed
xNinjaKittyx opened this issue Sep 19, 2019 · 3 comments
Closed

SSL: CERTIFICATE_VERIFY_FAILED with urllib 1.25.4 #5204

xNinjaKittyx opened this issue Sep 19, 2019 · 3 comments

Comments

@xNinjaKittyx
Copy link

Have a bunch of code using verify=False because it's a local server with no certificate.

Fails with something like:

requests.exceptions.SSLError: HTTPSConnectionPool(host='hostname', port=80): Max retries exceeded with url: /api (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

I was able to work around this by reverting back to 1.25.3 instead of 1.25.4

Expected Result

Expected it to not check SSL Certificate.

Actual Result

It checked SSL Certificate

Reproduction Steps

import requests

requests.get('https://nocertdomain.com/', verify=False)
# Certificate_verify_failed

System Information

$ python -m requests.help
{
  "chardet": {
    "version": "3.0.4"
  },
  "cryptography": {
    "version": ""
  },
  "idna": {
    "version": "2.8"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.6.7"
  },
  "platform": {
    "release": "4.15.0-60-generic",
    "system": "Linux"
  },
  "pyOpenSSL": {
    "openssl_version": "",
    "version": null
  },
  "requests": {
    "version": "2.22.0"
  },
  "system_ssl": {
    "version": "1010100f"
  },
  "urllib3": {
    "version": "1.25.4"
  },
  "using_pyopenssl": false
}

This command is only available on Requests v2.16.4 and greater. Otherwise,
please provide some basic information about your system (Python version,
operating system, &c).

@nateprewitt
Copy link
Member

Thanks for opening a ticket @xNinjaKittyx. The issue is being tracked in urllib3 at urllib3/urllib3#1682. We’ll leave this open for visibility until the issue is resolved.

@sethmlarson
Copy link
Member

This issue is resolved in urllib3 1.25.5.

@nateprewitt
Copy link
Member

Thanks Seth! I’ll close this out then.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants