cert: allow cert expiry to be set in config

This commit is contained in:
Jonathan Underwood authored and GitHub committed 2021-04-05 20:23:33 -07:00
1 parent 1ccf6ed7d4
commit 786568fa46
6 files changed
+32 -21

No files matched your search

-7
View File
@@ -16,13 +16,6 @@ import (
"time"
)
const (
// DefaultAutogenValidity is the default validity of a self-signed
// certificate. The value corresponds to 14 months
// (14 months * 30 days * 24 hours).
DefaultAutogenValidity = 14 * 30 * 24 * time.Hour
)
var (
// End of ASN.1 time.
endOfTime = time.Date(2049, 12, 31, 23, 59, 59, 0, time.UTC)