Skip to content

Commit

Permalink
Merge pull request go-acme#230 from doherty/account-json-executable
Browse files Browse the repository at this point in the history
Write account.json without executable bit set
  • Loading branch information
xenolf authored Jun 13, 2016
2 parents cae9c70 + 58758f4 commit a4dfe5a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ func (a *Account) Save() error {
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,
)
}

0 comments on commit a4dfe5a

Please sign in to comment.