-
Notifications
You must be signed in to change notification settings - Fork 62
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
fix+refactor(tls): it should properly handle self-signed certificates, return a clear error otherwise #149
Comments
Good research on this issue. Even if we only get 1 and 2 above done that's a good start. From what I can gather from the other issues you listed |
wanted to come here to 👍 this issue as well because we've had a few customers run into this. |
I think I've partially found a solution for the issue, at least to work with blockstream's electrum. We're using the custom implementation of However, it still does not work with the custom electrum server mentioned by pythcoiner in the issue, but it gives now a better error w.r.t to the certificates, but I think it's solvable. I'll open the candidate PR soon (after BitDevs). |
If users want to use a self signed certificates they would need to use it with Version 3, which is not the case for the one from pythcoiner. |
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 thevalidate_domain: false
settings, and neither returns a proper and clear regarding the problem. There is some issue when using therustls
crate that it fails for self-signed certificates, on other handopenssl
works just fine.Therefore, I'm creating this issue mainly for two purposes:
validate_domain: false
, when using eitheropenssl
andrustls
with it's expected behavior.rustls
custom certificate validation.Use case
Allow users to properly use and connect electrum servers with self-signed certificates, either with
openssl
orrustls
.Additional context
rustls/rustls#124
lightningnetwork/lnd#5450
rigelminer/rigel#130
The text was updated successfully, but these errors were encountered: