Skip to content
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

Don't require TLS connection when connecting to localhost or onion addresses #4

Open
Kixunil opened this issue Dec 13, 2019 · 8 comments
Assignees
Labels
electrum feature request New feature or request

Comments

@Kixunil
Copy link

Kixunil commented Dec 13, 2019

When an address matching regex ^(localhost|127.0.0.1|.*\.onion)(:[1-9][0-9]*)?$ is entered, show a checkbox "Disable TLS", as the encryption might not be needed.

This is useful for example when one sets up an SSH tunnel using ConnectBot.

@dpad85 dpad85 added electrum feature request New feature or request labels Dec 16, 2019
@dpad85 dpad85 self-assigned this Dec 16, 2019
@tomichec
Copy link

tomichec commented Sep 28, 2020

the required change can be done here:

require(url.isHttps) { "invalid url=${url}, should be https" }

@Kixunil
Copy link
Author

Kixunil commented Sep 30, 2020

That looks like LNURL, I was talking about connecting to a custom node.

@dpad85
Copy link
Member

dpad85 commented Oct 1, 2020

Hi, from v1.3.2 you can disable/enable TLS when connecting to an onion electrum server (it's disabled by default) so this issue is half fixed. What needs to be done is to add the same behaviour for localhost|127.0.0.1 addresses.

@tomichec
Copy link

tomichec commented Oct 4, 2020

It would also be useful to have this behavior for lnurl.

@slush0
Copy link

slush0 commented Jan 13, 2021

Please allow connecting to non-ssl electrum nodes. There are setups when it is completely unnecessary or even impossible to fulfill this requirement. I'm using Electrum server in private network behind VPN and it is very hard to generate ssl cert for publicly unreachable machines.

@Kixunil
Copy link
Author

Kixunil commented Jan 13, 2021

It would also be useful to have this behavior for lnurl.

For onion only, I don't believe LNURL is useful for localhost queries.

@slush0 good point about VPN, that'd be hard to check correctly as I suggested. Maybe allow it with big fat warning?

dpad85 pushed a commit that referenced this issue Sep 15, 2021
@slush0
Copy link

slush0 commented Mar 2, 2023

Any progress on this? Custom servers to require SSL is really limiting. Please allow to skip this requirement.

@xbtnode
Copy link

xbtnode commented Jan 25, 2025

Any updates on this? It would be very helpful for local Electrum servers. Now the only way to connect is via tor and tor is too slow to start up in time for incoming payments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
electrum feature request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants