forked from TrueCloudLab/lego
No longer save certs with executable flag :)
This commit is contained in:
parent
e5f6f4c4a3
commit
6f979feffa
1 changed files with 2 additions and 2 deletions
|
@ -101,12 +101,12 @@ func run(c *cli.Context) {
|
|||
certOut := path.Join(conf.CertPath(), certRes.Domain+".crt")
|
||||
privOut := path.Join(conf.CertPath(), certRes.Domain+".key")
|
||||
|
||||
err = ioutil.WriteFile(certOut, certRes.Certificate, 0700)
|
||||
err = ioutil.WriteFile(certOut, certRes.Certificate, 0600)
|
||||
if err != nil {
|
||||
logger().Printf("Unable to save Certificate for domain %s\n\t%v", certRes.Domain, err)
|
||||
}
|
||||
|
||||
err = ioutil.WriteFile(privOut, certRes.PrivateKey, 0700)
|
||||
err = ioutil.WriteFile(privOut, certRes.PrivateKey, 0600)
|
||||
if err != nil {
|
||||
logger().Printf("Unable to save PrivateKey for domain %s\n\t%v", certRes.Domain, err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue