[GH-ISSUE #218] I think I have a problem with the certificate, can anyone help!!!! #190

Open
opened 2026-02-25 20:34:52 +03:00 by kerem · 6 comments
Owner

Originally created by @gabrielbandeira80 on GitHub (Jun 19, 2024).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/218

 __      __.__             ________      ________        .__
/  \    /  \  |__ _____   /  _____/  ____\______ \_______|__|
\   \/\/   /  |  \\__  \ /   \  ___ /  _ \|    |  \_  __ \  |
 \        /|   Y  \/ __ \\    \_\  (  <_> )    `   \  | \/  |
  \__/\  / |___|  (____  /\______  /\____/_______  /__|  |__|
       \/       \/     \/        \/              \/

-------------- Whatsapp Google Drive Extractor --------------

[i] Searching...

Requesting access to Google...
Traceback (most recent call last):
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connectionpool.py", line 1058, in validate_conn
conn.connect()
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connection.py", line 419, in connect
self.sock = ssl_wrap_socket(
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\util\ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\util\ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 1040, in _create
self.do_handshake()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\adapters.py", line 667, in send
resp = conn.urlopen(
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connectionpool.py", line 799, in urlopen
retries = retries.increment(
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "G:\whapa-master2\libs\whagodri.py", line 553, in
wa_backup = WaBackup(**getConfigs())
File "G:\whapa-master2\libs\whagodri.py", line 43, in init
token = gpsoauth.perform_master_login(email=gmail, password=password, android_id=android_id)
File "G:\whapa-master2\libs\gpsoauth_init_.py", line 138, in perform_master_login
return perform_auth_request(data, proxy)
File "G:\whapa-master2\libs\gpsoauth_init
.py", line 81, in _perform_auth_request
res = session.post(AUTH_URL, data=data, verify=True)
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\adapters.py", line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))

Originally created by @gabrielbandeira80 on GitHub (Jun 19, 2024). Original GitHub issue: https://github.com/B16f00t/whapa/issues/218 __ __.__ ________ ________ .__ / \ / \ |__ _____ / _____/ ____\______ \_______|__| \ \/\/ / | \\__ \ / \ ___ / _ \| | \_ __ \ | \ /| Y \/ __ \\ \_\ ( <_> ) ` \ | \/ | \__/\ / |___| (____ /\______ /\____/_______ /__| |__| \/ \/ \/ \/ \/ -------------- Whatsapp Google Drive Extractor -------------- [i] Searching... Requesting access to Google... Traceback (most recent call last): File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connectionpool.py", line 715, in urlopen httplib_response = self._make_request( File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connectionpool.py", line 1058, in _validate_conn conn.connect() File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connection.py", line 419, in connect self.sock = ssl_wrap_socket( File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl( File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 1040, in _create self.do_handshake() File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\lib\ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\adapters.py", line 667, in send resp = conn.urlopen( File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\connectionpool.py", line 799, in urlopen retries = retries.increment( File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\urllib3\util\retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)'))) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "G:\whapa-master2\libs\whagodri.py", line 553, in <module> wa_backup = WaBackup(**getConfigs()) File "G:\whapa-master2\libs\whagodri.py", line 43, in __init__ token = gpsoauth.perform_master_login(email=gmail, password=password, android_id=android_id) File "G:\whapa-master2\libs\gpsoauth\__init__.py", line 138, in perform_master_login return _perform_auth_request(data, proxy) File "G:\whapa-master2\libs\gpsoauth\__init__.py", line 81, in _perform_auth_request res = session.post(AUTH_URL, data=data, verify=True) File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\sessions.py", line 637, in post return self.request("POST", url, data=data, json=json, **kwargs) File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "C:\Users\gabir\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\requests\adapters.py", line 698, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))
Author
Owner

@DarkFighterLuke commented on GitHub (Jun 19, 2024):

I have this problem too...

<!-- gh-comment-id:2178840114 --> @DarkFighterLuke commented on GitHub (Jun 19, 2024): I have this problem too...
Author
Owner

@guilhergomes commented on GitHub (Jun 21, 2024):

same problem

<!-- gh-comment-id:2182872055 --> @guilhergomes commented on GitHub (Jun 21, 2024): same problem
Author
Owner

@Aalterego81 commented on GitHub (Jun 24, 2024):

same here

<!-- gh-comment-id:2187546041 --> @Aalterego81 commented on GitHub (Jun 24, 2024): same here
Author
Owner

@guilhergomes commented on GitHub (Jul 2, 2024):

Did anyone manage to solve it?

<!-- gh-comment-id:2203382230 --> @guilhergomes commented on GitHub (Jul 2, 2024): Did anyone manage to solve it?
Author
Owner
<!-- gh-comment-id:2543824714 --> @rschu68 commented on GitHub (Dec 15, 2024): https://medium.com/@vkmauryavk/resolving-sslcertverificationerror-certificate-verify-failed-unable-to-get-local-issuer-515d7317454f
Author
Owner

@rschu68 commented on GitHub (Dec 15, 2024):

Find the Certifi CA Bundle Path

You can find the path to the certifi CA bundle using the following Python snippet:

import certifi
print(certifi.where())

export REQUESTS_CA_BUNDLE=
(.../site-packages/certifi/cacert.pem)

<!-- gh-comment-id:2543826760 --> @rschu68 commented on GitHub (Dec 15, 2024): Find the Certifi CA Bundle Path You can find the path to the certifi CA bundle using the following Python snippet: import certifi print(certifi.where()) export REQUESTS_CA_BUNDLE=<found path from the python script above> (.../site-packages/certifi/cacert.pem)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whapa#190
No description provided.