Skip to content

Commit

Permalink
Merge pull request #168 from rikatz/tempdir
Browse files Browse the repository at this point in the history
Changes the SSL Temp file to something inside the same SSL Directory
  • Loading branch information
aledbf authored Jan 24, 2017
2 parents 74512c1 + a930b29 commit 40406b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/pkg/net/ssl/ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func AddOrUpdateCertAndKey(name string, cert, key, ca []byte) (*ingress.SSLCert,
pemName := fmt.Sprintf("%v.pem", name)
pemFileName := fmt.Sprintf("%v/%v", ingress.DefaultSSLDirectory, pemName)

tempPemFile, err := ioutil.TempFile("", pemName)
tempPemFile, err := ioutil.TempFile(ingress.DefaultSSLDirectory, pemName)
if err != nil {
return nil, fmt.Errorf("could not create temp pem file %v: %v", tempPemFile.Name(), err)
}
Expand Down

0 comments on commit 40406b1

Please sign in to comment.