Using python 3.11 On MacOS Ventura 13.4.1 M1 chip
I am writing a python script that will access a V1 API endpoint using a get method but I keep running into the below error.
requests.exceptions.SSLError: HTTPSConnectionPool(host=10.0.0.1, port=443): Max retries exceeded with url: /api/config (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1002)')))
Below is a snippet of the code I am using.
ip = "10.0.0.1" (example IP)
credentials = ("admin", password)
response = requests.get(url=f"https://{ip}/api/config", auth=credentials, verify=False)
The head scratcher for me is when the same script is run on a windows machine it works fine, does not seem to be a specifc machine issue. I tried a few different macs and windows for fun and it followed the same result.
Most of what I am reading online is to use the "verify=False" argument which I have specified.
I've run the Install Certificates.command
on my mac from the python 3.11 folder in applications and it's confirmed that all requirements have been met. I've run an upgrade on pip too as well as a last ditch effort. Any guidance would be appreciated!