Browse Source

Add a -client suffix to filenames when generating client certificates

Filippo Valsorda 6 năm trước cách đây
mục cha
commit
9e9563535e
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      cert.go

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