psf / requests

A simple, yet elegant, HTTP library.
https://requests.readthedocs.io/en/latest/
Apache License 2.0
52.19k stars 9.33k forks source link

ssl certificate validation of requests was ignored but the ssl certificate still reported an error #6728

Closed expzhizhuo closed 5 months ago

expzhizhuo commented 5 months ago

Problem recurrence

Please refer to our Stack Overflow tag for guidance. Testing on different operating systems, I found it was Caused by SSLError(SSLError(1, '[SSL:) caused by SSLerror (SSLError(1, '[SSL:) SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1006)')) error, but I did not have a validation problem during one of the validations

image

Testing on my mac air m2 machine produced the above error, but my demonstration in kali did not have this problem

image

But I tested it with the default python version on ubuntu 22.04 and got the same error message as on my mac

image

Environment version

image image image

Recurring environment

import requests
response = requests.get(url="https://183.237.161.98:4433/favicon.ico", verify=False, allow_redirects=False)
github-actions[bot] commented 5 months ago

As described in the template, we won't be able to answer questions on this issue tracker. Please use Stack Overflow