djc / instant-acme

Simple ACME client
Apache License 2.0
85 stars 18 forks source link

Improve credential handling #34

Closed djc closed 1 year ago

djc commented 1 year ago

Only yield AccountCredentials (which gives access to the private key) at Account creation time. Store the directory in the AccountCredentials and prefer using it to acquire new DirectoryUrls if available at deserialization time.

djc commented 1 year ago

Thanks for reviewing, good comments! I think overall this hits a good balance, so going to merge this for now.