boredazfcuk / docker-icloudpd

An Alpine Linux container for the iCloud Photos Downloader command line utility
1.58k stars 149 forks source link

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate #541

Closed yideax closed 2 months ago

yideax commented 2 months ago

Hello-

I noticed that ICloudPD stopped backing up my files around two weeks ago. Checking the logs it seems to be a failure to verify the certificate along with max tries exceeded? Is there anyway to reset this as I feel like this is an error on my end rather than the app.

I've tried resetting the keyring to go through the authentication steps again but now it doesnt even let me get to that point as I get the error below. I've logged onto icloud to check for popups, disabled the advanced security protection, and also tried resetting my date/time to match.

Actual Behavior Enter iCloud password for XXXXX@gmail.com: Traceback (most recent call last): File "urllib3/connectionpool.py", line 714, in urlopen File "urllib3/connectionpool.py", line 403, in make_request File "urllib3/connectionpool.py", line 1053, in validate_conn File "urllib3/connection.py", line 419, in connect File "urllib3/util/ssl.py", line 449, in ssl_wrap_socket File "urllib3/util/ssl.py", line 493, in _ssl_wrap_socket_impl File "ssl.py", line 455, in wrap_socket File "ssl.py", line 1046, in _create File "ssl.py", line 1321, in do_handshake ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "requests/adapters.py", line 486, in send File "urllib3/connectionpool.py", line 798, in urlopen File "urllib3/util/retry.py", line 592, in increment urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='idmsa.apple.com', port=443): Max retries exceeded with url: /appleauth/auth/signin?isRememberMeEnabled=true (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "starters/icloud.py", line 5, in File "pyicloud_ipd/cmdline.py", line 200, in main File "pyicloud_ipd/base.py", line 305, in init File "pyicloud_ipd/base.py", line 357, in authenticate File "requests/sessions.py", line 637, in post File "pyicloud_ipd/base.py", line 77, in request File "requests/sessions.py", line 589, in request File "requests/sessions.py", line 703, in send File "requests/adapters.py", line 517, in send requests.exceptions.SSLError: HTTPSConnectionPool(host='idmsa.apple.com', port=443): Max retries exceeded with url: /appleauth/auth/signin?isRememberMeEnabled=true (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)'))) [2460] Failed to execute script 'icloud' due to unhandled exception! 2024-04-07 16:24:23 ERROR Keyring file does not exist. Please try again.

yideax commented 2 months ago

Sorry I figured it out myself, i had a power outage that messed up my router settings so my unraid server didnt hav einternet for some reason. Fixed by rebooting router.