-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Describe the enhancement
It has been noticed both in CI tests, which currently rely on blockstream's electrum client, and by other users in bitcoindevkit/bdk#1598 and wizardsardine/liana#1300 that the electrum-client does not properly connect to electrum servers with self-signed certificates while using the validate_domain: false settings, and neither returns a proper and clear regarding the problem. There is some issue when using the rustls crate that it fails for self-signed certificates, on other hand openssl works just fine.
Therefore, I'm creating this issue mainly for two purposes:
- Improve the documentation regarding the usage of
validate_domain: false, when using eitheropensslandrustlswith it's expected behavior. - Improve the error handling and propagation, reporting proper TLS certificate validation errors to the user.
- Investigate and fix the inner issue with
rustlscustom certificate validation.
Use case
Allow users to properly use and connect electrum servers with self-signed certificates, either with openssl or rustls.
Additional context
rustls/rustls#124
lightningnetwork/lnd#5450
rigelminer/rigel#130
Metadata
Metadata
Assignees
Labels
Type
Projects
Status