mirror of
https://github.com/go-acme/lego.git
synced 2024-12-25 11:02:56 +02:00
Save accounts using indented JSON
This commit is contained in:
parent
ea47f1137a
commit
14627c9d51
@ -86,7 +86,7 @@ func (a *Account) GetRegistration() *acme.RegistrationResource {
|
||||
|
||||
// Save the account to disk
|
||||
func (a *Account) Save() error {
|
||||
jsonBytes, err := json.Marshal(a)
|
||||
jsonBytes, err := json.MarshalIndent(a, "", "\t")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user