Skip to content

Conversation

@lordshashank
Copy link
Contributor

@lordshashank lordshashank commented Aug 25, 2024

  • Resolves feature: ssl for electrum connection #106
  • Adds SSL support in electrum server for remote connections.
  • Runs both SSL and non-SSL server on different ports which can be specified.
  • Introduces no-ssl tag to run without the SSL server.
  • Reformats basic tests to test out SSL connection.

@lordshashank lordshashank marked this pull request as draft August 25, 2024 09:36
@Davidson-Souza
Copy link
Member

I think it's useful to still have the non-tls connection.

Use port 50001 for non-tls and 50002 for tls

@lordshashank
Copy link
Contributor Author

@Davidson-Souza could we introduce a tag of ssl in config, which if true we can run tls otherwise general non-tls one?

@Davidson-Souza
Copy link
Member

I like having a config for the ssl that optionally disables it

But almost every software I know let's you use both at the same time in different ports. I personally would like this because while some wallets (e.g. Phoenix) requires SSL. I like to make small scripts and tests on the CLI where I do the requests directly with nc. So I would benefit greatly having this option

Copy link
Member

@Davidson-Souza Davidson-Souza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, it looks good, just a few minor changes and it should be ready to ship. The CI errors are probably due to not finding the SSL files while spawning the daemon, it should be fixed by ignoring SSL if we can't find the SSL stuff (i.e. not listening on 50002, only 50001)

@Davidson-Souza
Copy link
Member

CI is breaking on functional tests because it can't find the TLS files. You can just disable tls for most of those tests here.

@lordshashank lordshashank marked this pull request as ready for review August 28, 2024 05:39
@Davidson-Souza
Copy link
Member

Before merging, it would be useful if you squashed those commits and provided a message explaining what's new. See the latest commits on master for a reference.

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.

feature: ssl for electrum connection

2 participants