Thanks to visit codestin.com
Credit goes to github.com

Skip to content

request ssl verify error #12

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

Open
driftsy-dev opened this issue Feb 18, 2025 · 2 comments
Open

request ssl verify error #12

driftsy-dev opened this issue Feb 18, 2025 · 2 comments

Comments

@driftsy-dev
Copy link

C:\Users\ILoveNigga\Desktop\creator>temp_mail.py
Traceback (most recent call last):
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\connectionpool.py", line 464, in
_make_request
self._validate_conn(conn)
~~~~~~~~~~~~~~~~~~~^^^^^^
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\connectionpool.py", line 1093, in _validate_conn
conn.connect()
~~~~~~~~~~~~^^
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\connection.py", line 741, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
sock=sock,
...<14 lines>...
assert_fingerprint=self.assert_fingerprint,
)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\connection.py", line 920, in ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
sock=sock,
...<8 lines>...
tls_in_tls=tls_in_tls,
)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\util\ssl
.py", line 460, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\util\ssl
.py", line 504, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\ssl.py", line 455, in wrap_socket
return self.sslsocket_class._create(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
sock=sock,
^^^^^^^^^^
...<5 lines>...
session=session
^^^^^^^^^^^^^^^
)
^
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\ssl.py", line 1076, in _create
self.do_handshake()
~~~~~~~~~~~~~~~~~^^
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\ssl.py", line 1372, in do_handshake
self._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1018)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\connectionpool.py", line 787, in
urlopen
response = self._make_request(
conn,
...<10 lines>...
**response_kw,
)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\connectionpool.py", line 488, in
_make_request
raise new_e
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1018)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests\adapters.py", line 667, in send
resp = conn.urlopen(
method=request.method,
...<9 lines>...
chunked=chunked,
)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\connectionpool.py", line 841, in
urlopen
retries = retries.increment(
method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]
)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\urllib3\util\retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.1secmail.com', port=443): Max retries exceeded with url: /api/v1/?action=getDomainList (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1018)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\ILoveNigga\Desktop\creator\temp_mail.py", line 3, in
email = EMail(username='example', domain='1secmail.com')
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\tempmail\providers.py", line 38, in init
if domain is not None and domain not in self.get_domains():
~~~~~~~~~~~~~~~~^^
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\tempmail\utils.py", line 17, in wrapper
return func(*args, **kwargs)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\tempmail\providers.py", line 90, in get_domains
resp = requests.get('https://www.1secmail.com/api/v1/?action=getDomainList')
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "C:\Users\ILoveNigga\AppData\Local\Programs\Python\Python313\Lib\site-packages\requests\adapters.py", line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.1secmail.com', port=443): Max retries exceeded with url: /api/v1/?action=getDomainList (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1018)')))

@cubicbyte
Copy link
Owner

This is most likely error on your side, as far as I understand it.

But that's the least of the problems, because the mail provider I use stopped working this month. So I'll have to switch to another provider soon

@Summaw
Copy link

Summaw commented Feb 24, 2025

add verify=False to your request params. for example,
response = requests.get("url", verify=False)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants