2020-04-25 22:22:45 +00:00
|
|
|
package cert
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
2020-12-26 13:11:49 +00:00
|
|
|
|
|
|
|
"gitlab.com/inetmock/inetmock/pkg/config"
|
2020-04-25 22:22:45 +00:00
|
|
|
)
|
|
|
|
|
2020-04-27 22:26:15 +00:00
|
|
|
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)
|
2020-04-25 22:22:45 +00:00
|
|
|
}
|