1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-26 03:09:37 +02:00

No longer save certs with executable flag :)

This commit is contained in:
xenolf 2015-09-26 23:23:18 +02:00
parent e5f6f4c4a3
commit 6f979feffa

View File

@ -101,12 +101,12 @@ func run(c *cli.Context) {
certOut := path.Join(conf.CertPath(), certRes.Domain+".crt") certOut := path.Join(conf.CertPath(), certRes.Domain+".crt")
privOut := path.Join(conf.CertPath(), certRes.Domain+".key") 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 { if err != nil {
logger().Printf("Unable to save Certificate for domain %s\n\t%v", certRes.Domain, err) 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 { if err != nil {
logger().Printf("Unable to save PrivateKey for domain %s\n\t%v", certRes.Domain, err) logger().Printf("Unable to save PrivateKey for domain %s\n\t%v", certRes.Domain, err)
} }