Security fix: Incorrect permission assignment for critical resource
This commit is contained in:
parent
499e251796
commit
f097c029f3
10 changed files with 17 additions and 17 deletions
|
|
@ -47,8 +47,8 @@ func GenerateCA(notBefore time.Time, notAfter time.Time) error {
|
|||
}
|
||||
|
||||
// Ensure directories exists
|
||||
os.Mkdir(PKIDir, 0777)
|
||||
os.Mkdir(path.Join(PKIDir, "shared"), 0777)
|
||||
os.Mkdir(PKIDir, 0751)
|
||||
os.Mkdir(path.Join(PKIDir, "shared"), 0751)
|
||||
|
||||
pub, priv, err := GeneratePrivKey()
|
||||
if err != nil {
|
||||
|
|
|
|||
Reference in a new issue