In my case, I used the ssl module to "workaround" the certification like so:

import ssl

ssl._create_default_https_context = ssl._create_unverified_context

Then to read your link content, you can use:

urllib.request.urlopen(urllink)

Note that whilst this will make the code work, it removes security protections.

Answer from Jia on Stack Overflow
🌐
Python
peps.python.org › pep-0493
PEP 493 – HTTPS verification migration tools for Python 2.7 | peps.python.org
This change is proposed for inclusion in CPython 2.7.12 and later CPython 2.7.x releases. It consists of a new PYTHONHTTPSVERIFY environment variable that can be set to '0' to disable the default verification without modifying the application source code (which may not even be available in cases of bytecode-only application distribution)
Discussions

amazon s3 - While running my python code it is giving me error "ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)" - Stack Overflow
I am currently new with the boto and SSL. I am running a code which creates instances in AWS. When I run the code (tried on global and virtual env both) I get the error: self._sslobj.do_handshake... More on stackoverflow.com
🌐 stackoverflow.com
Document setting PYTHONHTTPSVERIFY to 0 for disabling SSL validation in the jenkins_job module
- name: Config the job jenkins_job: ... PYTHONHTTPSVERIFY: 0 ... ansible 2.9.6 config file = None configured module search path = ['/home/gustavomcarmo/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/gustavomcarmo/.local/lib/python3.6/site-pa... More on github.com
🌐 github.com
7
April 30, 2020
How do I disable the ssl check in python 3.x? - Stack Overflow
Communities for your favorite technologies. Explore all Collectives · Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work More on stackoverflow.com
🌐 stackoverflow.com
python - Scraping: SSL: CERTIFICATE_VERIFY_FAILED error for http://en.wikipedia.org - Stack Overflow
I'm practicing the code from 'Web Scraping with Python', and I keep having this certificate problem: from urllib.request import urlopen from bs4 import BeautifulSoup import re pages = set() def More on stackoverflow.com
🌐 stackoverflow.com
🌐
Blogger
ptspts.blogspot.com › 2016 › 11 › how-to-fix-python-ssl-errors-when.html
pts.blog: How to fix Python SSL errors when downloading https pages
November 8, 2016 - import os, ssl if (not os.environ.get('PYTHONHTTPSVERIFY', '') and getattr(ssl, '_create_unverified_context', None)): ssl._create_default_https_context = ssl._create_unverified_context
🌐
Red Hat
access.redhat.com › articles › 2039753
Certificate verification in Python standard library HTTP clients - Red Hat Customer Portal
October 4, 2017 - $ PYTHONHTTPSVERIFY=0 python /path/to/python-program.py · Once Python is configured to perform certificate verification for HTTPS client connections, some connections may fail because of failed verification. The following short program can be used to demonstrate the most common errors that can be encountered. #!/usr/bin/env python try: import urllib2 #python2 except: import urllib.request as urllib2 #python3 import sys req = urllib2.Request(sys.argv[1], headers={'User-Agent':'Mozilla/5.0'}) urllib2.urlopen(req)
🌐
Splunk Community
community.splunk.com › t5 › Installation › PYTHONHTTPSVERIFY › td-p › 649633
Solved: PYTHONHTTPSVERIFY - Splunk Community
July 7, 2023 - Starting splunk server daemon (splunkd)... PYTHONHTTPSVERIFY is set to 0 in splunk-launch.conf disabling certificate valida tion for the httplib and urllib libraries shipped with the embedded Python inter preter; must be set to "1" for increased security Done
🌐
Stack Overflow
stackoverflow.com › questions › 54297374 › while-running-my-python-code-it-is-giving-me-error-ssl-sslerror-ssl-certific
amazon s3 - While running my python code it is giving me error "ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)" - Stack Overflow
$ export PYTHONHTTPSVERIFY=0 · ... 2019 at 20:31 · h0lmes221B · 10111 silver badge44 bronze badges 3 · Your Certificate Verification is failing which could be due to reasons like the CA certificate not being present on ...
🌐
GitHub
github.com › ansible-collections › community.general › issues › 255
Document setting PYTHONHTTPSVERIFY to 0 for disabling SSL validation in the jenkins_job module · Issue #255 · ansible-collections/community.general
April 30, 2020 - Once the jenkins_job module does not have the validate_certs parameter to set to false for disabling the validation of an eventual self-signed certificate of the Jenkins instance, please document that as a workaround the environment variable PYTHONHTTPSVERIFY can be set to 0 so the behaviour of the task will be the same.
Author   gustavomcarmo
Find elsewhere
🌐
Medium
moreless.medium.com › how-to-fix-python-ssl-certificate-verify-failed-97772d9dd14c
How to fix Python SSL CERTIFICATE_VERIFY_FAILED | by More Less | Medium
December 6, 2019 - import os, ssl if (not os.environ.get('PYTHONHTTPSVERIFY', '') and getattr(ssl, '_create_unverified_context', None)): ssl._create_default_https_context = ssl._create_unverified_context
🌐
Python
python.org › dev › peps › pep-0493
PEP 493 -- HTTPS verification migration tools for Python 2.7 | Python.org
October 5, 2015 - This change is proposed for inclusion in CPython 2.7.12 and later CPython 2.7.x releases. It consists of a new PYTHONHTTPSVERIFY environment variable that can be set to '0' to disable the default verification without modifying the application source code (which may not even be available in cases of bytecode-only application distribution)
🌐
Smirnov
dev.smirnov.app › web development notes › python › ssl: certificate_verify_failed with python2.7/3
SSL: CERTIFICATE_VERIFY_FAILED with Python2.7/3
March 12, 2024 - import os import sys import ssl _https_verify_envvar = 'PYTHONHTTPSVERIFY' def _get_https_context_factory(): if not sys.flags.ignore_environment: config_setting = os.environ.get(_https_verify_envvar) if config_setting == '0': return ssl._create_unverified_context return ssl.create_default_context ssl._create_default_https_context = _get_https_context_factory()
🌐
DEV Community
dev.to › toby-patrick › how-to-fix-ssl-certificateverifyfailed-in-python-requests-35nl
How to Fix “SSL: CERTIFICATE_VERIFY_FAILED” in Python Requests - DEV Community
September 15, 2025 - Whether you’re building a simple automation script or integrating with third-party APIs, encountering...
🌐
GeeksforGeeks
geeksforgeeks.org › ssl-certificate-verification-python-requests
SSL Certificate Verification - Python requests - GeeksforGeeks
September 9, 2021 - Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
🌐
py4u
py4u.org › blog › python-ssl-certificate-validation-fails-on-some-distribution-commands
Python SSL Certificate Verify Failed: Troubleshooting Twine Upload, setup.py & Corporate Laptop Issues
python -m venv myenv source myenv/bin/activate # Linux/macOS # Append corporate CA to myenv/lib/python3.X/site-packages/certifi/cacert.pem
🌐
Fivetran
fivetran.com › docs › connector-sdk › troubleshooting › ssl-certificate-verification-failed
Error: SSL Certificate Verification Failed
You can bypass SSL verification by setting the PYTHONHTTPSVERIFY environment variable to 0, but this is not recommended for production use due to security risks.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 2077926 › update-to-python-3-11-got-sslerror(sslcertverifica
Update to Python 3.11 got SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)'))) - Microsoft Q&A
September 24, 2024 - After we updated our Sentinel data connector(implemented in Azure Function) to use python3.11 from 3.10, we got SSL Error from urllib3 when making API calls: SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))