Skip to content
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

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076) #1052

Open
jorisk1980 opened this issue May 9, 2021 · 1 comment

Comments

@jorisk1980
Copy link

jorisk1980 commented May 9, 2021

  • I installed ElectrumX on Debian10
  • ElectrumX lauches fine:

May 09 11:39:17 electrum electrumx_server[6405]: INFO:DB:network: mainnet
May 09 11:39:17 electrum electrumx_server[6405]: INFO:DB:height: 682,724
May 09 11:39:17 electrum electrumx_server[6405]: INFO:DB:tip: 0000000000000000000d82bc21e288866d672f944ba7af9e1bb5e1d9f0404f21
May 09 11:39:17 electrum electrumx_server[6405]: INFO:DB:tx count: 640,690,718
May 09 11:39:17 electrum electrumx_server[6405]: INFO:History:history DB version: 1
May 09 11:39:17 electrum electrumx_server[6405]: INFO:History:flush count: 953
May 09 11:39:17 electrum electrumx_server[6405]: INFO:DB:populating header merkle cache...
May 09 11:39:17 electrum electrumx_server[6405]: INFO:MemPool:beginning processing of daemon mempool. This can take some time...
May 09 11:39:17 electrum electrumx_server[6405]: INFO:SessionManager:RPC server listening on localhost:8000
May 09 11:39:19 electrum electrumx_server[6405]: INFO:DB:header merkle cache populated in 1.9s
May 09 11:39:49 electrum electrumx_server[6405]: INFO:LocalRPC:[0] RPC [::1]:59082, 0 total
May 09 11:40:05 electrum electrumx_server[6405]: INFO:MemPool:synced in 47.31s
May 09 11:40:05 electrum electrumx_server[6405]: INFO:MemPool:compact fee histogram: [(89.6, 101053), (82.2, 110062), (30.5, 121357), (6.5, 133986), (5.0, 222377), (4.1, 26659), (4.0, 2711223), (3.1, 73345), (3.0, 3847859), (2.4, 238253), (2.1, 247475), (2.0, 3683375), (1.9, 1444910), (1.8, 579654), (1.7, 517802), (1.5, 958285), (1.4, 425806), (1.3, 921695), (1.2, 1426164), (1.1, 2018828), (1.0, 20400529)]
May 09 11:40:05 electrum electrumx_server[6405]: INFO:MemPool:14,180 txs 40.21 MB touching 163,300 addresses
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:max session count: 1,000
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:session timeout: 600 seconds
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:session cost hard limit 10,000
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:session cost soft limit 1,000
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:bandwidth unit cost 5,000
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:request sleep 2,500ms
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:request timeout 30s
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:initial concurrent 10
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:max response size 1,000,000 bytes
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:TCP server listening on all_interfaces:50001
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:SSL server listening on all_interfaces:50002
May 09 11:40:05 electrum electrumx_server[6405]: INFO:SessionManager:WSS server listening on all_interfaces:50004

  • Ports are open on the outside
  • Selfsigned certificates are removed and replaced with signed Sectigo certificates

My electrumx.conf:


DB_DIRECTORY = /db
DB_CACHE = 800
DAEMON_URL = http://XXXXXX:[email protected]:8332/

COIN = Bitcoin

SSL_CERTFILE=/etc/electrumx/server.crt
SSL_KEYFILE=/etc/electrumx/server.key
SERVICES=tcp://:50001,ssl://:50002,wss://:50004,rpc://

My client doesn't connect. I use these server.key and server.crt files for my apache2 engine and they work fine.

  • deleted %APPDATA%\Electrum\certs entries on my client computer > no result.
@jorisk1980
Copy link
Author

Update: I replaced my certificates with self-signed certificates and now connection is possible.

Any reason why Electrum can't work with my sectigo certificates? Could it be it's root and intermedia CA is missing on my local electrum client computer?

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

1 participant