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

Account should be able to be created from a key only #93

Open
axos88 opened this issue Mar 17, 2025 · 2 comments
Open

Account should be able to be created from a key only #93

axos88 opened this issue Mar 17, 2025 · 2 comments

Comments

@axos88
Copy link

axos88 commented Mar 17, 2025

According to https://github.com/algesten/acme-lib/blob/5a4d55080635dc9a7f9a380a79984e8b5f9ab281/src/dir.rs#L117C9-L119C61

A call to newAccount is fine to do with an already existing key. The call will return the account url in this case.
This feature would allow users to only persist the account key (and the directory url if needed), and retrieve all necessary info from that.

@cpu
Copy link
Collaborator

cpu commented Mar 17, 2025

According to https://github.com/algesten/acme-lib/blob/5a4d55080635dc9a7f9a380a79984e8b5f9ab281/src/dir.rs#L117C9-L119C61

I think a better citation for this is RFC 8555 7.3.1. In particular to do what you're describing it would be important to set the onlyReturnExisting bool to true in the new account request.

@axos88
Copy link
Author

axos88 commented Mar 17, 2025

Thanks for that, submitting a PR soon

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