You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context.GetLogger(ctx).Fatalln(fmt.Errorf("invalid TLS version %q specified in REGISTRY_HTTP_TLS_MINVERSION: %v (valid values are %q)", s, err, crypto.ValidTLSVersions()))
context.GetLogger(ctx).Fatalln(fmt.Errorf("invalid cipher suite %q specified in REGISTRY_HTTP_TLS_CIPHERSUITES: %v (valid suites are %q)", s, err, crypto.ValidCipherSuites()))
193
-
}
194
-
cipherSuites=append(cipherSuites, cipherSuite)
200
+
returnfmt.Errorf("invalid cipher suite %q specified in REGISTRY_HTTP_TLS_CIPHERSUITES: %v (valid suites are %q)", s, err, crypto.ValidCipherSuites())
195
201
}
202
+
cipherSuites=append(cipherSuites, cipherSuite)
196
203
}
204
+
}
197
205
198
-
tlsConf:=crypto.SecureTLSConfig(&tls.Config{
199
-
ClientAuth: tls.NoClientCert,
200
-
MinVersion: minVersion,
201
-
CipherSuites: cipherSuites,
202
-
})
203
-
204
-
iflen(dockerConfig.HTTP.TLS.ClientCAs) !=0 {
205
-
pool:=x509.NewCertPool()
206
+
tlsConf:=crypto.SecureTLSConfig(&tls.Config{
207
+
ClientAuth: tls.NoClientCert,
208
+
MinVersion: minVersion,
209
+
CipherSuites: cipherSuites,
210
+
})
206
211
207
-
for_, ca:=rangedockerConfig.HTTP.TLS.ClientCAs {
208
-
caPem, err:=ioutil.ReadFile(ca)
209
-
iferr!=nil {
210
-
context.GetLogger(ctx).Fatalln(err)
211
-
}
212
+
iflen(dockerConfig.HTTP.TLS.ClientCAs) !=0 {
213
+
pool:=x509.NewCertPool()
212
214
213
-
ifok:=pool.AppendCertsFromPEM(caPem); !ok {
214
-
context.GetLogger(ctx).Fatalln(fmt.Errorf("Could not add CA to pool"))
0 commit comments