Skip to content

Conversation

xloem
Copy link

@xloem xloem commented Feb 20, 2022

It turns out electrumx is configured to not ever verify certificates.

Some of the server certificates are actually configured with authorities and can be verified.

In these changes I attempted to default to verifying certificates, and provide a warning if it fails. It would be safer to mark the peers bad but I'm not sure there are that many hosts with certificates in the chain of trust.

@smmalis37
Copy link
Contributor

I'd be curious to see an estimate of how many servers do and don't. I know my server is self-signed currently.

@xloem
Copy link
Author

xloem commented May 26, 2022

Hey, it's been a while since I worked on this and I don't remember it well, but it's a feature I tend to worry about if missing from peer to peer projects. I'm afraid I'm not presently using electrum or bsv.

I do think there are lots of great further improvements in addition to this one, to include self-signed certificates, such as exchanging public keys of peers, and pinning certificates. One can also get a free signature at letsencrypt.org .

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

Successfully merging this pull request may close these issues.

2 participants