mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-13 16:31:41 +08:00

committed by
Filippo Valsorda

parent
5bb0c47df7
commit
66af5a51f6
3
cert.go
3
cert.go
@@ -76,6 +76,9 @@ func (m *mkcert) makeCert(hosts []string) {
|
||||
tpl.DNSNames = append(tpl.DNSNames, h)
|
||||
}
|
||||
}
|
||||
if m.client {
|
||||
tpl.ExtKeyUsage = []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}
|
||||
}
|
||||
|
||||
// IIS (the main target of PKCS #12 files), only shows the deprecated
|
||||
// Common Name in the UI. See issue #115.
|
||||
|
Reference in New Issue
Block a user