mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
Add a -client suffix to filenames when generating client certificates
This commit is contained in:
3
cert.go
3
cert.go
@@ -149,6 +149,9 @@ func (m *mkcert) fileNames(hosts []string) (certFile, keyFile, p12File string) {
|
|||||||
if len(hosts) > 1 {
|
if len(hosts) > 1 {
|
||||||
defaultName += "+" + strconv.Itoa(len(hosts)-1)
|
defaultName += "+" + strconv.Itoa(len(hosts)-1)
|
||||||
}
|
}
|
||||||
|
if m.client {
|
||||||
|
defaultName += "-client"
|
||||||
|
}
|
||||||
|
|
||||||
certFile = "./" + defaultName + ".pem"
|
certFile = "./" + defaultName + ".pem"
|
||||||
if m.certFile != "" {
|
if m.certFile != "" {
|
||||||
|
Reference in New Issue
Block a user