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

Lnd cannot be configured to self-generate keys and certs #743

Open
ekimber opened this issue Oct 18, 2024 · 2 comments
Open

Lnd cannot be configured to self-generate keys and certs #743

ekimber opened this issue Oct 18, 2024 · 2 comments

Comments

@ekimber
Copy link

ekimber commented Oct 18, 2024

The lnd TLS key and certificate are generated by the secrets script. If this is set to manual, for example, if you wish to supply preconfigured secrets with sops, then no key and certificate are generated. However, lnd cannot generate its own certificates in /etc/nix-bitcoin-secrets because of permissions.
Perhaps there is a reason that the lndCert option is read only? If I allow the relevant options to be set then lnd can generate the certs. It seems to me that the cert is effectively a runtime thing and doesn't necessarily belong in the /etc/ directory

@jonasnick
Copy link
Member

Why do you want lnd to be able to generate its own certificates? I agree that ideally this should be possible because it feels like it can prevent some use cases or make them harder. On the other hand, allowing lnd to generate the certs increases the number of configurations we have to support and test.

@ekimber
Copy link
Author

ekimber commented Oct 29, 2024

Why do you want lnd to be able to generate its own certificates?

It's not that I really need to do this, it is just a consequence of using manual secret generation that the script does not run and lnd cannot start without certificates.

I could generate and supply the certificates manually with sops but it certainly does make the use case harder. Alternatively the lnd cert generation could be handled independent from the secret generation so it gets generated even if manual is set.

I see the use cases for both manual and automatic secret generation but I don't see a use case for manual lnd certs. I guess not many people actually use manual or this issue would have come up already.

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

No branches or pull requests

2 participants