Skip to content

Commit

Permalink
Merge pull request cesanta#28 from jmastron/master
Browse files Browse the repository at this point in the history
Disable broken SSLv3 and force strong ciphers to match Docker Registry 2.1 security
  • Loading branch information
rojer committed Sep 4, 2015
2 parents bdd0d52 + 4fc7f82 commit 4087980
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions auth_server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ func ServeOnce(c *server.Config, cf string, hd *httpdown.HTTP) (*server.AuthServ
glog.Exitf("Failed to load certificate and key: both were not provided")
}
tlsConfig = &tls.Config{
MinVersion: tls.VersionTLS10,
PreferServerCipherSuites: true,
CipherSuites: []uint16{
tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
tls.TLS_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_RSA_WITH_AES_256_CBC_SHA,
},
NextProtos: []string{"http/1.1"},
Certificates: make([]tls.Certificate, 1),
}
Expand Down

0 comments on commit 4087980

Please sign in to comment.