Peter Kurfer
49e58ac2e4
- move to Gitlab - make code better testable - create app abstraction for server - cleanup
16 lines
562 B
Go
16 lines
562 B
Go
package cert
|
|
|
|
import (
|
|
"os"
|
|
|
|
"gitlab.com/inetmock/inetmock/pkg/config"
|
|
)
|
|
|
|
func init() {
|
|
config.AddDefaultValue(certCachePathConfigKey, os.TempDir())
|
|
config.AddDefaultValue(ecdsaCurveConfigKey, string(config.CurveTypeED25519))
|
|
config.AddDefaultValue(caCertValidityNotBeforeKey, defaultCAValidityDuration)
|
|
config.AddDefaultValue(caCertValidityNotAfterKey, defaultCAValidityDuration)
|
|
config.AddDefaultValue(serverCertValidityNotBeforeKey, defaultServerValidityDuration)
|
|
config.AddDefaultValue(serverCertValidityNotAfterKey, defaultServerValidityDuration)
|
|
}
|