electrum: nginx HTTPS reverse proxy causes the client to fail to connect to server in unintuitive way
Hi,
Electrum Wallet 3.3.4 on OSX, same problem on Windows.
I’m testing an instance of electrum server. Everything works well when using it in clear (http port 50001) as well as through Tor, but when I use it with TLS (I installed a letsencrypt TLS certificate), Electrum wallet always gives me this error:
[i][electrum.kexkey.com] disconnecting due to: SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)')
Used -s electrum.kexkey.com:50002:s when starting up.
Are you aware of any recent TLS problems with python or electrum wallet? When I hit https://electrum.kexkey.com on port 443 or 50002, the browser tells me the certificate is valid.
Thanks!
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 18 (8 by maintainers)
Your port 50002 points to an nginx HTTP webserver. Of course Electrum cannot connect… It should point to the JSON RPC endpoint of an electrum server.
Compare
electrum.qtornado.com:50002:s
with
electrum.kexkey.com:50002:s
I’ve tried connecting to electrum.kexkey.com:50001 using TCP, there I get:
[i][electrum.kexkey.com] disconnecting due to: ConnectionRefusedError(111, "Connect call failed ('158.69.33.222', 50001)")I’ve also tried electrum.kexkey.com:50002 using SSL, there I get:
[n] couldn't launch iface electrum.kexkey.com:50002:s -- TimeoutError()I’ve assumed you turned off the server. Reaching a timeout does not suggest SSL related errors. Are you sure your server is on, listening on that port, and that port is open?
It does that! Electrum is very flexible here, as explained in my link above, it accepts both CA signed certs and self-signed certs.
You shouldn’t fiddle too much with the stuff in the certs dir (for the client); apart from maybe deleting files already there, for debugging purposes.
Is that server online now? I would like to try to connect. There are no known issues about this atm.
You don’t need a letsencrypt cert.
Electrum Client saves the first certificate it downloads from the server, and just requires that it match in the future. If you changed certs, it’ll be different and invalid.
You can fix it by going into your electrum directory and deleting your previous server certificate.