File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ type ServerSideTLSJson struct {
35
35
// Configuration represents configurations levels declared by the Mozilla server-side-tls
36
36
// see https://wiki.mozilla.org/Security/Server_Side_TLS
37
37
type Configuration struct {
38
- OpenSSLCiphersuites string `json:"openssl_ciphersuites"`
38
+ OpenSSLCiphersuites [] string `json:"openssl_ciphersuites"`
39
39
Ciphersuites []string `json:"ciphersuites"`
40
40
TLSVersions []string `json:"tls_versions"`
41
41
TLSCurves []string `json:"tls_curves"`
@@ -47,6 +47,9 @@ type Configuration struct {
47
47
ECDHParamSize float64 `json:"ecdh_param_size"`
48
48
HstsMinAge float64 `json:"hsts_min_age"`
49
49
OldestClients []string `json:"oldest_clients"`
50
+ OCSPStample bool `json:"ocsp_staple"`
51
+ ServerPreferedOrder bool `json:"server_preferred_order"`
52
+ MaxCertLifespan float64 `json:"maximum_certificate_lifespan"`
50
53
}
51
54
52
55
type goCipherConfiguration struct {
@@ -108,6 +111,8 @@ func mapTLSVersions(tlsVersions []string) []int {
108
111
var versions []int
109
112
for _ , tlsVersion := range tlsVersions {
110
113
switch tlsVersion {
114
+ case "TLSv1.3" :
115
+ versions = append (versions , tls .VersionTLS13 )
111
116
case "TLSv1.2" :
112
117
versions = append (versions , tls .VersionTLS12 )
113
118
case "TLSv1.1" :
You can’t perform that action at this time.
0 commit comments