diff options
author | Gibheer <gibheer+git@zero-knowledge.org> | 2018-04-18 14:14:25 +0200 |
---|---|---|
committer | Gibheer <gibheer+git@zero-knowledge.org> | 2018-04-18 14:14:25 +0200 |
commit | e9cd735e0c85c36ad05b540e287463235b49eebe (patch) | |
tree | c3d432d08e33d5cf302a004f0fd008dcc05f9510 /create_private_key.go | |
parent | d01892150eed9d58210eb40b7c005d5fa8e93238 (diff) |
fix file permissions
This was reported to me, that it makes no sense that csr, crt and so on
are written as 0700. And even in the case of private keys, why do they
need the executable bit set?
Diffstat (limited to 'create_private_key.go')
-rw-r--r-- | create_private_key.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/create_private_key.go b/create_private_key.go index c13889f..3e0c976 100644 --- a/create_private_key.go +++ b/create_private_key.go @@ -47,7 +47,7 @@ func CreatePrivateKey(args []string) error { if *flagOutput == "stdout" { out = os.Stdout } else { - out, err = os.OpenFile(*flagOutput, os.O_WRONLY|os.O_CREATE|os.O_EXCL|os.O_SYNC, 0700) + out, err = os.OpenFile(*flagOutput, os.O_WRONLY|os.O_CREATE|os.O_EXCL|os.O_SYNC, 0600) if err != nil { return err } |