aboutsummaryrefslogtreecommitdiff
path: root/solve_tls.go
diff options
context:
space:
mode:
Diffstat (limited to 'solve_tls.go')
-rw-r--r--solve_tls.go7
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,
}