lightwalletd
lightwalletd copied to clipboard
Refactor commandline options for TLS
We made a few changes to TLS config option handling and now the certificate generation isn't reachable anymore.
Should we just remove that code or refactor to the following logic?
- No flag, default, no TLS, serve plaintext, print warning
- --use-tls flag, if provided (but no cert/key flags) generate certs, print warning
- --use-tls and --cert and --key flags, use them, or panic if they don't work
Sounds good to me, @pacu, @gmale, @mdr0id, do you have an opinion on this?