Try following code:

import urllib3
c = urllib3.HTTPSConnectionPool('10.0.3.168', port=9001, cert_reqs='CERT_NONE',
                                assert_hostname=False)
c.request('GET', '/')

See Setting assert_hostname to False will disable SSL hostname verification

Answer from falsetru on Stack Overflow
🌐
HayaGeek
hayageek.com › home › disable ssl verification in python – requests, urllib3
Disable SSL Verification in Python - requests, urllib3
February 7, 2024 - Learn to disable SSL verification in Python with practical code examples for http.client, requests, urllib3, and aiohttp packages.
Discussions

Suppress SSL certificate warnings when ssl_verify=False is set?
I have ssl=True, and ssl_verify=False is on by default (although I have also tried explicitly setting it): However, I am still seeing this when I attempt to write a point to InfluxDB: /usr/local/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py:768: InsecureRequestWarning: ... More on github.com
🌐 github.com
16
September 3, 2015
SSL verification issue with 1.25.4 (via requests)
Hi! I'm using requests 2.22.0 and urllib3 1.25.4. In requests, I need to disable certificate verification because we use self signed certificates. I create a Session object and set its verify p... More on github.com
🌐 github.com
29
September 19, 2019
verify=False and requests.packages.urllib3.disable_warnings()
As of 1.9 of urllib3, the following warning appears once per invocation: /usr/local/lib/python2.7/site-packages/requests-2.4.0-py2.7.egg/requests/packages/urllib3/connectionpool.py:730: InsecureReq... More on github.com
🌐 github.com
57
September 9, 2014
Ignoring ssl certificate does not suppress urllib3 log warning entries
Specifying verify=False to ignore ssl certificate does not suppress urllib3 warning log entries, causing the log to fill up with unwanted warnings. When certificate verification is purposely suppressed, no log entries warning about this condition should be emitted. Even with verify=False , log entries such as the following are written to the log: Feb 17 11:57:27 rpi4 python... More on github.com
🌐 github.com
2
February 17, 2022
🌐
urllib3
urllib3.readthedocs.io › en › latest › advanced-usage.html
Advanced Usage - urllib3 2.6.4.dev20 documentation
Making unverified HTTPS requests is strongly discouraged, however, if you understand the risks and wish to disable these warnings, you can use disable_warnings(): ... Finally, you can suppress the warnings at the interpreter level by setting the PYTHONWARNINGS environment variable or by using the -W flag. Brotli is a compression algorithm created by Google with better compression than gzip and deflate and is supported by urllib3 if the Brotli package or brotlicffi package is installed.
🌐
GitHub
github.com › influxdata › influxdb-python › issues › 240
Suppress SSL certificate warnings when ssl_verify=False is set? · Issue #240 · influxdata/influxdb-python
September 3, 2015 - I have ssl=True, and ssl_verify=False is on by default (although I have also tried explicitly setting it): However, I am still seeing this when I attempt to write a point to InfluxDB: /usr/local/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py:768: InsecureRequestWarning: ...
Author   victorhooi
🌐
urllib3
urllib3.readthedocs.io › en › stable › advanced-usage.html
Advanced Usage - urllib3 2.6.3 documentation
Making unverified HTTPS requests is strongly discouraged, however, if you understand the risks and wish to disable these warnings, you can use disable_warnings(): ... Finally, you can suppress the warnings at the interpreter level by setting the PYTHONWARNINGS environment variable or by using the -W flag. Brotli is a compression algorithm created by Google with better compression than gzip and deflate and is supported by urllib3 if the Brotli package or brotlicffi package is installed.
🌐
ScrapingAnt
scrapingant.com › blog › requests-ignore-ssl
How to Ignore SSL Certificate in Python Requests Library | ScrapingAnt
August 16, 2024 - import requests import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) A more targeted approach is to disable SSL verification for specific requests only. This method provides better control over which requests bypass SSL verification, reducing the overall security risk compared to global disabling.
🌐
urllib3
urllib3.readthedocs.io › en › 1.25.10 › advanced-usage.html
Advanced Usage — urllib3 1.25.10 documentation
Making unverified HTTPS requests is strongly discouraged, however, if you understand the risks and wish to disable these warnings, you can use disable_warnings(): ... Finally, you can suppress the warnings at the interpreter level by setting the PYTHONWARNINGS environment variable or by using the -W flag. urllib3 supports Google App Engine with some caveats.
Find elsewhere
🌐
GitHub
github.com › urllib3 › urllib3 › issues › 1682
SSL verification issue with 1.25.4 (via requests) · Issue #1682 · urllib3/urllib3
September 19, 2019 - SSL verification issue with 1.25.4 (via requests)#1682 · Copy link · sbstp · opened · on Sep 19, 2019 · Issue body actions · Hi! I'm using requests 2.22.0 and urllib3 1.25.4. In requests, I need to disable certificate verification because we use self signed certificates. I create a Session object and set its verify property to False, which used to worked perfectly fine until urllib3 1.25.4. This is the stacktrace · venv/lib/python3.6/site-packages/urllib3-1.25.4-py3.6.egg/urllib3/connectionpool.py:672: in urlopen chunked=chunked, venv/lib/python3.6/site-packages/urllib3-1.25.4-py3.6.egg
Author   sbstp
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-disable-security-certificate-checks-for-requests-in-python
How to disable security certificate checks for requests in Python - GeeksforGeeks
July 23, 2025 - Explanation: By passing verify=False to the request method we disabled the security certificate check and made the program error-free to execute. But this approach will throw warnings as shown in the output picture.
🌐
ProxiesAPI
proxiesapi.com › articles › expert-techniques-for-disabling-ssl-certificate-verification-in-python-requests
Expert Techniques for Disabling SSL Certificate Verification in Python Requests | ProxiesAPI
Pass · verify=False in the request method like · requests.get(url, verify=False). What's the quickest way to disable verification globally? Set · verify=False on a Requests Session object like · session.verify = False.
🌐
GitHub
github.com › psf › requests › issues › 2214
verify=False and requests.packages.urllib3.disable_warnings() · Issue #2214 · psf/requests
September 9, 2014 - verify=False and requests.packages.urllib3.disable_warnings()#2214 · Copy link · Labels · Contributor FriendlyFeature RequestPlanned · invisiblethreat · opened · on Sep 9, 2014 · Issue body actions · As of 1.9 of urllib3, the following warning appears once per invocation: /usr/local/lib/python2.7/site-packages/requests-2.4.0-py2.7.egg/requests/packages/urllib3/connectionpool.py:730: InsecureRequestWarning: Unverified HTTPS request is being made.
Author   invisiblethreat
🌐
WebScraping.AI
webscraping.ai › faq › urllib3 › how-do-i-manage-ssl-certificates-and-verification-in-urllib3
How do I manage SSL certificates and verification in urllib3? | WebScraping.AI
import urllib3 import os def create_pool_manager_for_env(): """Create PoolManager based on environment""" if os.getenv('ENVIRONMENT') == 'production': # Strict SSL verification for production return urllib3.PoolManager( cert_reqs='CERT_REQUIRED', assert_hostname=True ) else: # Relaxed settings for development (with warnings) urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) return urllib3.PoolManager( cert_reqs='CERT_NONE', assert_hostname=False ) http = create_pool_manager_for_env()
🌐
Oreate AI
oreateai.com › blog › a-complete-guide-to-modifying-default-ssl-verification-in-urllib3-and-requests-libraries-in-python › ce56a011bd9f57651a19cf175a34f4d8
A Complete Guide to Modifying Default SSL Verification in Urllib3 and Requests Libraries in Python - Oreate AI Blog
January 7, 2026 - Changing this value to None or 'CERT_NONE' disables SSL verification. It’s also recommended that assert_hostname parameter be set as False which disables hostname validation; ssl_version should generally remain None unless specific protocol ...
🌐
GitHub
github.com › psf › requests › issues › 6066
Ignoring ssl certificate does not suppress urllib3 log warning entries · Issue #6066 · psf/requests
February 17, 2022 - Specifying verify=False to ignore ssl certificate does not suppress urllib3 warning log entries, causing the log to fill up with unwanted warnings. When certificate verification is purposely suppressed, no log entries warning about this condition ...
Author   Blindfreddy
🌐
WebScraping.AI
webscraping.ai › faq › urllib3 › what-should-i-do-if-i-encounter-an-ssl-error-while-using-urllib3
What should I do if I encounter an SSL error while using urllib3? | WebScraping.AI
import urllib3 import ssl # Create context that accepts self-signed certificates ssl_context = ssl.create_default_context() ssl_context.check_hostname = False ssl_context.verify_mode = ssl.CERT_NONE urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) http = urllib3.PoolManager(ssl_context=ssl_context) response = http.request('GET', 'https://self-signed.badssl.com/')
🌐
WebScraping.AI
webscraping.ai › faq › urllib3 › how-do-i-disable-ssl-verification-in-urllib3
How do I disable SSL verification in urllib3? | WebScraping.AI
Sometimes you don't want to disable SSL verification entirely—you just need to trust a custom certificate authority. This is a more secure approach: import urllib3 import certifi # Path to your custom CA bundle ca_bundle = '/path/to/custom-ca-bundle.crt' # Create a PoolManager with custom CA bundle http = urllib3.PoolManager( cert_reqs='CERT_REQUIRED', ca_certs=ca_bundle ) response = http.request('GET', 'https://internal-server.company.com')
🌐
Python Requests
python-requests.org › home › news › python requests ignore ssl: a comprehensive guide
Python Requests Ignore SSL: A Comprehensive Guide -
November 13, 2025 - Setting verify=False bypasses SSL verification. Important: Doing this can make your application vulnerable to attacks if used on untrusted endpoints. When ignoring SSL, Python will show an InsecureRequestWarning.
🌐
Jonathan Cutrer
jcutrer.com › home › python requests: how to ignore invalid ssl certificates
python requests: How to ignore invalid SSL certificates - jcutrer.com
September 17, 2021 - # TODO add try catch example try: response = session.get(url,allow_redirects=False,verify=True) except requests.exceptions.SSLError: pass · After adding verify=False you may notice that you will now get warnings from urllib3 output to the console when running your script.