Permalink
Browse files

Add a -client suffix to filenames when generating client certificates

  • Loading branch information...
FiloSottile committed Feb 5, 2019
1 parent fcdbc54 commit 9e9563535ec66d65e984fe4d93d9025cb3abb5ab
Showing with 3 additions and 0 deletions.
  1. +3 −0 cert.go
@@ -149,6 +149,9 @@ func (m *mkcert) fileNames(hosts []string) (certFile, keyFile, p12File string) {
if len(hosts) > 1 {
defaultName += "+" + strconv.Itoa(len(hosts)-1)
}
if m.client {
defaultName += "-client"
}

certFile = "./" + defaultName + ".pem"
if m.certFile != "" {

0 comments on commit 9e95635

Please sign in to comment.