diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2016-01-27 00:29:05 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2016-01-27 00:29:05 +0100 |
commit | c187bfb299cc0cf28237f7dbac722ae9c8fbd50b (patch) | |
tree | 536f41a32fff9fd373d183f7819d73d4bc55a04d | |
parent | 7910a721afd33fe3ebdd1aed7c69ba28bcd4545a (diff) |
Add suffix
-rw-r--r-- | solve_tls.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/solve_tls.go b/solve_tls.go index 321aae9..4042433 100644 --- a/solve_tls.go +++ b/solve_tls.go @@ -11,7 +11,10 @@ import ( "time" ) -const tlsKeySize = 2048 +const ( + tlsKeySize = 2048 + tlsSuffix = ".acme.invalid" +) type tlsSolver struct { http.Server @@ -42,7 +45,7 @@ func (s *tlsSolver) Solve(token, keyAuth string) error { }, NotBefore: time.Now(), NotAfter: time.Now().Add(time.Hour), - KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature, + KeyUsage: x509.KeyUsageDigitalSignature, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, BasicConstraintsValid: true, } |