Skip to content

Commit

Permalink
fix: cert path requires a trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan committed Oct 17, 2023
1 parent 78f76fe commit c892f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func CertPath() string {

// MakeCert for the give hostname, if it doesn't already exist.
func MakeCert(host string) (certFile string, keyFile string, err error) {
cp := CertPath()
cp := CertPath() + string(filepath.Separator)
err = os.MkdirAll(cp, 0755)
if err != nil {
return "", "", err
Expand Down

0 comments on commit c892f90

Please sign in to comment.