Peter Kurfer
91f0cf6963
- use `Unmarshal` method of viper - move config loading, defaulting and stuff to config package - move serve to an extra command and move keep only global flags in root command - add startup logic to onInit method in root command - update mocks - clean config structs - adopt changes in plugins - update default config
13 lines
498 B
Go
13 lines
498 B
Go
package cert
|
|
|
|
const (
|
|
defaultServerValidityDuration = "168h"
|
|
defaultCAValidityDuration = "17520h"
|
|
|
|
certCachePathConfigKey = "tls.certCachePath"
|
|
ecdsaCurveConfigKey = "tls.ecdsaCurve"
|
|
caCertValidityNotBeforeKey = "tls.validity.ca.notBeforeRelative"
|
|
caCertValidityNotAfterKey = "tls.validity.ca.notAfterRelative"
|
|
serverCertValidityNotBeforeKey = "tls.validity.server.notBeforeRelative"
|
|
serverCertValidityNotAfterKey = "tls.validity.server.notAfterRelative"
|
|
)
|