Add a -client suffix to filenames when generating client certificates

This commit is contained in:
Filippo Valsorda
2019-02-05 14:19:51 -05:00
committed by GitHub
parent fcdbc54cc3
commit 9e9563535e

View File

@@ -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 != "" {