From 6f979feffaac1f79635766b5b6df5dfe7bb59155 Mon Sep 17 00:00:00 2001 From: xenolf Date: Sat, 26 Sep 2015 23:23:18 +0200 Subject: [PATCH] No longer save certs with executable flag :) --- cli_handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli_handlers.go b/cli_handlers.go index 72204359..438c14f0 100644 --- a/cli_handlers.go +++ b/cli_handlers.go @@ -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) }