Bitcoin Forum
April 08, 2020, 04:09:39 PM *
News: Latest Bitcoin Core release: 0.19.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can't connect electrum to my own electrumx server  (Read 57 times)
jtkirk
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 15, 2020, 05:53:03 PM
 #1

Hi,

I've been attempting for the better part of two weeks now to switch from Armory to Electrum as my main BTC client.

(I've been running my own bitcoind and lnd instances on my public linux server for over a year now - eventually I'd like to be able to use my own trusted server for BTC transactions even while on the road, without running a full node on my laptop).

I went through the process of building electrumx from source, getting it running, and then babysitting the 6+ day sync to my local blockchain instance. If it matters, the server is running Fedora Core 31.

Finally as of this morning, my server is up and running, and a TON of connections are being made via. SSL, according to the logs ('INFO:ElectrumX:[number] SSL: IP:PORT 50 total').

However, when I run the client from either my laptop, or even directly on the same server machine, and use my server hostname and port, it seems to just sit there with the red circle in the lower left. I'm able to connect to other servers no problem. But not mine.

Here's my (edited) electrumx.conf:

DAEMON_URL=http://[my_rpc_user]:[my_rpc_password]@127.0.0.1:8332/
DB_ENGINE=leveldb
USERNAME=bitcoin
ELECTRUMX=/usr/local/bin/electrumx_server
SSL_CERTFILE=[certs_folder]/caleb.vegas.crt
SSL_KEYFILE=[private_keys_folder]/caleb.vegas.key
SERVICES = ssl://:50002,rpc://
REPORT_SERVICES=ssl://caleb.vegas:50002
BANNER_FILE=/home/bitcoin/.electrumx/banner.txt
;SSL_PORT=50002
;TCP_PORT=50001
COIN=BitcoinSegwit
;NET=mainnet
MAX_SESSIONS_PER_IP=50

I opened up ports 50001 and 50002 on my firewall.

Any suggestions? Are there any simple tests I should try first with my server to verify it's actually working properly?

Thanks,
-Caleb
1586362179
Hero Member
*
Offline Offline

Posts: 1586362179

View Profile Personal Message (Offline)

Ignore
1586362179
Reply with quote  #2

1586362179
Report to moderator
1586362179
Hero Member
*
Offline Offline

Posts: 1586362179

View Profile Personal Message (Offline)

Ignore
1586362179
Reply with quote  #2

1586362179
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1586362179
Hero Member
*
Offline Offline

Posts: 1586362179

View Profile Personal Message (Offline)

Ignore
1586362179
Reply with quote  #2

1586362179
Report to moderator
jtkirk
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 15, 2020, 11:28:28 PM
 #2

Ah, so I discovered the '-v' and '--oneserver' flags... Inspecting that output led me to realize the cause of the error: the electrum client wasn't verifying my server's SSL certificate (which is odd, because I was using a valid PositiveSSL certificate that I purchased from namecheap.com, which happens to be the same .crt and .key that my webserver uses, and clients like chrome and firefox accept that certificate). When I switched the electrumx server over to a simple self-signed cert instead of my fancy dancy cert, the client connected without a hitch.

Not a big deal, but it seems odd that I can only get self-signed server certs to validate from the client. Is this possibly a failure on the python side to discover the client system's trusted root certificate chains (the way SSL web browsers do)?

-Caleb
HCP
Legendary
*
Offline Offline

Activity: 1302
Merit: 2330

<insert witty quote here>


View Profile
February 17, 2020, 09:04:56 AM
 #3

It seems that Electrum has some "cert caching" issues... judging by a number of closed issues on the ElectrumX GitHub Issues register

Try shutting down Electrum, then deleting the certs in the .electrum/certs directory and then restarting Electrum and see if it works with the "fancy dancy" cert loaded in ElectrumX Wink

Failing that, try logging an issue on that ElectrumX github and see if the dev has any ideas.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!