summaryrefslogtreecommitdiff
path: root/system/tls/devcerts.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-27 17:51:26 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-27 17:51:26 -0800
commite13cbb199623a8462297bebb4a22952418cc046d (patch)
tree3bd3ffa251451264b0adaee71718add92c0929c3 /system/tls/devcerts.go
parenta826762a43e49f33f5be22b2a05ed7b9a1ce3dc6 (diff)
adding CA option back for testing
Diffstat (limited to 'system/tls/devcerts.go')
-rw-r--r--system/tls/devcerts.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/tls/devcerts.go b/system/tls/devcerts.go
index 8b2f013..b7d256e 100644
--- a/system/tls/devcerts.go
+++ b/system/tls/devcerts.go
@@ -102,9 +102,8 @@ func setupDev() {
}
}
- hosts = []string{"localhost", "0.0.0.0"}
// make all certs CA
- // template.IsCA = true
+ template.IsCA = true
template.KeyUsage |= x509.KeyUsageCertSign
derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, publicKey(priv), priv)