Peter Kurfer
7c2a41ad25
- apply changes in proxy plugin and TLS interceptor - add HTTPS proxy support - move ca-generation command to main app - minor refactoring to improve API stability - move mocks to extra packages to avoid cycling imports - fix bug in multi-port configuration - change HTTP proxy to redirect to HTTP mock instead of maintaining custom rules
21 lines
810 B
Go
21 lines
810 B
Go
package cert
|
|
|
|
const (
|
|
CurveTypeP224 CurveType = "P224"
|
|
CurveTypeP256 CurveType = "P256"
|
|
CurveTypeP384 CurveType = "P384"
|
|
CurveTypeP521 CurveType = "P521"
|
|
CurveTypeED25519 CurveType = "ED25519"
|
|
|
|
defaultServerValidityDuration = "168h"
|
|
defaultCAValidityDuration = "17520h"
|
|
|
|
certCachePathConfigKey = "tls.certCachePath"
|
|
ecdsaCurveConfigKey = "tls.ecdsaCurve"
|
|
publicKeyConfigKey = "tls.rootCaCert.publicKey"
|
|
privateKeyPathConfigKey = "tls.rootCaCert.privateKey"
|
|
caCertValidityNotBeforeKey = "tls.validity.ca.notBeforeRelative"
|
|
caCertValidityNotAfterKey = "tls.validity.ca.notAfterRelative"
|
|
serverCertValidityNotBeforeKey = "tls.validity.server.notBeforeRelative"
|
|
serverCertValidityNotAfterKey = "tls.validity.server.notAfterRelative"
|
|
)
|