spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.35k stars 3.06k forks source link

ClientConnectorCertificateError: Cannot connect to host swaps.electrum.org:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1125)')] #7639

Closed TARS-bot closed 2 years ago

TARS-bot commented 2 years ago

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

Traceback (most recent call last):
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 969, in _wrap_create_connection
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/base_events.py", line 1050, in create_connection
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/base_events.py", line 1080, in _create_connection_transport
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/sslproto.py", line 529, in data_received
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/sslproto.py", line 189, in feed_ssldata
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/ssl.py", line 944, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1125)

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

Traceback (most recent call last):
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/base.py", line 347, in mainloop
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/base.py", line 391, in idle
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/base.py", line 342, in dispatch_input
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/base.py", line 308, in post_dispatch_input
  File "kivy/_event.pyx", line 724, in kivy._event.EventDispatcher.dispatch
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/uix/behaviors/button.py", line 179, in on_touch_up
  File "kivy/_event.pyx", line 720, in kivy._event.EventDispatcher.dispatch
  File "kivy/_event.pyx", line 1263, in kivy._event.EventObservers.dispatch
  File "kivy/_event.pyx", line 1147, in kivy._event.EventObservers._dispatch
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/lang/builder.py", line 57, in custom_callback
  File "<string>", line 189, in <module>
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/main_window.py", line 794, in popup_dialog
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/main_window.py", line 745, in swap_dialog
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/uix/dialogs/lightning_channels.py", line 688, in __init__
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/runners.py", line 44, in run
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/base_events.py", line 616, in run_until_complete
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/submarine_swaps.py", line 439, in get_pairs
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/network.py", line 1299, in _send_http_on_proxy
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/client.py", line 1117, in __aenter__
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/client.py", line 520, in _request
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 535, in connect
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 892, in _create_connection
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 1051, in _create_direct_connection
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 1020, in _create_direct_connection
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 971, in _wrap_create_connection
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host swaps.electrum.org:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1125)')]

ClientConnectorCertificateError: Cannot connect to host swaps.electrum.org:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1125)')]

Reporter

This issue was reported by 21 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
4.1.5 3.8.8 (default, Jul 19 2021, 15:35:40) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on samsung beyond2 (RP1A.200720.012.G975FXXSEFUL1) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 10 on HUAWEI HWCLT (CLT-L09 10.0.0.171(C432E3R1P3)) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 10 on realme RMX1927 (RMX1927EX_11_C.79) standard en_US ℹ
4.1.5 3.8.8 (default, Jul 19 2021, 15:35:40) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 12 on samsung c2s (SP1A.210812.016.N985FXXS3FVC8) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on Redmi camellian (AN3516-camellia-build-20220329235035) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 10 on Redmi angelican (QP1A.190711.020) standard en_US ℹ
4.1.5 3.8.8 (default, Jul 19 2021, 15:35:40) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 10 on samsung starlte (QP1A.190711.020.G960FXXSHFUJ2) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on samsung a71 (RP1A.200720.012.A715FXXU8BVA2) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on samsung a01q (RP1A.200720.012.A015MUBS4BVC1) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on samsung a01q (RP1A.200720.012.A015MUBS4BVC1) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 12 on samsung c2s (SP1A.210812.016.N985FXXS3FVC8) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on samsung a01q (RP1A.200720.012.A015MUBS4BVC1) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on samsung a01q (RP1A.200720.012.A015MUBS4BVC1) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 9 on HONOR HWJSN-H (JSN-L21 9.1.0.303(C10E1R2P1)) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 12 on POCO vayu (SKQ1.211006.001 test-keys) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 10 on HUAWEI HWCLT (CLT-L09 10.0.0.161(C432E3R1P3)) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on Redmi sunny (RKQ1.201022.002 test-keys) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on samsung a01q (RP1A.200720.012.A015MUBS4BVC1) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 9 on TECNO TECNO-CC6 (CC6-H627HIJ-P-210831V244) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 11 on samsung a71 (RP1A.200720.012.A715FXXU8BVA2) standard en_US ℹ
4.2.1 3.8.13 (default, Mar 26 2022, 18:41:49) [Clang 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315d Android 12 on samsung b0q (SP1A.210812.016.S908USQU1AVC8) standard en_US ℹ

Additional Information

The reporting user(s) did not provide additional information.

SomberNight commented 2 years ago

@ecdsa @bitromortac looks like the TLS cert used for https://swaps.electrum.org/api, issued by Gandi to *.electrum.org, expired on Wed, 19 Jan 2022 23:59:59 GMT. (The main website is unaffected due to cloudflare being in front)

ecdsa commented 2 years ago

We decided to let the Gandi cert expire because we are using Cloudflare. @EagleTM suggested that we get one from Letsencrypt.

TARS-bot commented 2 years ago

Good afternoon @ecdsa,

I just received another crash report related to this issue. The crash occured on Electrum 4.2.1. I'm not sure which versions of Electrum include the fix but this is the first report from anything newer than 4.1.5 since you closed the issue.

Could you please check if this issue really is resolved? Here is the traceback that I just collected:

Traceback (most recent call last):
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 986, in _wrap_create_connection
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/base_events.py", line 1050, in create_connection
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/base_events.py", line 1080, in _create_connection_transport
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/sslproto.py", line 529, in data_received
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/sslproto.py", line 189, in feed_ssldata
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/ssl.py", line 944, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)

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

Traceback (most recent call last):
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/base.py", line 347, in mainloop
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/base.py", line 391, in idle
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/base.py", line 342, in dispatch_input
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/base.py", line 308, in post_dispatch_input
  File "kivy/_event.pyx", line 724, in kivy._event.EventDispatcher.dispatch
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/uix/behaviors/button.py", line 179, in on_touch_up
  File "kivy/_event.pyx", line 720, in kivy._event.EventDispatcher.dispatch
  File "kivy/_event.pyx", line 1263, in kivy._event.EventObservers.dispatch
  File "kivy/_event.pyx", line 1147, in kivy._event.EventObservers._dispatch
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Electrum/kivy/lang/builder.py", line 57, in custom_callback
  File "<string>", line 189, in <module>
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/main_window.py", line 820, in popup_dialog
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/main_window.py", line 771, in swap_dialog
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/gui/kivy/uix/dialogs/lightning_channels.py", line 693, in __init__
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/runners.py", line 44, in run
  File "/home/user/wspace/electrum/.buildozer/android/platform/build-arm64-v8a/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Lib/asyncio/base_events.py", line 616, in run_until_complete
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/submarine_swaps.py", line 439, in get_pairs
  File "/home/user/wspace/electrum/.buildozer/android/app/electrum/network.py", line 1304, in _send_http_on_proxy
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/client.py", line 1138, in __aenter__
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/client.py", line 535, in _request
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 542, in connect
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 907, in _create_connection
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 1206, in _create_direct_connection
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 1175, in _create_direct_connection
  File "/home/user/wspace/electrum/.buildozer/android/app/packages/aiohttp/connector.py", line 988, in _wrap_create_connection
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host swaps.electrum.org:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)')]

ClientConnectorCertificateError: Cannot connect to host swaps.electrum.org:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)')]

~ With robotic wishes