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

Feature: externally provided account key #149

Open
icing opened this issue Oct 10, 2019 · 3 comments
Open

Feature: externally provided account key #149

icing opened this issue Oct 10, 2019 · 3 comments

Comments

@icing
Copy link
Owner

icing commented Oct 10, 2019

Allow the user to configure a file as primary source for an ACME account key. As in

MDAccountKey <path_to_pem_file>

which can be set globally or per MD.

On startup, read the key and

  • use it for any new account created for an MD
  • check if they key itself has changed for an existing account and perform the account key roll-over during the watchdog runs.

As of now, the user does not have control over the ACME account creation. The same account is used for all MDs on the same CA. By configuring account keys for (sets of) MDs, theses can be tailored to match domain ownership.

By providing the key via a file, the admin takes control (and ownership) of the key management, for one. But it also means she has the key to make changes to her CA account herself.

@mschmitt
Copy link

Testing mod_md for the first time today, after many years with acme-tiny, I got stuck on the question what do with my account key. What became of this feature after such a long time? Is it possible that I'm overestimating the value of my one old precious account key and should rather play along with the account keys created on the fly by the module?

@icing
Copy link
Owner Author

icing commented Mar 30, 2023

The module is designed to work out of the box, without prior signup. Therefore it just registers an account and does its job. The account key is stored in the file system with root permisions, so you can get it.

It would be possible to "manually" exchange that key with your own, if you already have one. I never did that, not really caring. The one use case is certificate revocation which would require this key. mod_md does not support this by itself.

Some ACME providers have a feature called "External Account Binding" (EAB), which is supported by the module. Those providers are often more commercial and allow its users to create an EAB token to be used in installations. The account key created by a client using that EAB is then associated with your account.

@mschmitt
Copy link

If revocation is the most likely use case, I can safely roll with the dynamic key instead of centrally maintaining one. Thanks for the feedback and your work on the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants