forked from TrueCloudLab/lego
Write account.json without executable bit set
Fixes gh-229
This commit is contained in:
parent
cae9c70e1e
commit
58758f4761
1 changed files with 5 additions and 2 deletions
|
@ -101,6 +101,9 @@ func (a *Account) Save() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return ioutil.WriteFile(path.Join(a.conf.AccountPath(a.Email), "account.json"), jsonBytes, 0700)
|
return ioutil.WriteFile(
|
||||||
|
path.Join(a.conf.AccountPath(a.Email), "account.json"),
|
||||||
|
jsonBytes,
|
||||||
|
0600,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue