Don't accept RC4 as a cipher

This is in conformance with RFC7465
This commit is contained in:
Harry Jeffery 2015-02-19 15:00:28 +00:00
parent a769eb4767
commit cc79e22ffe

View File

@ -78,11 +78,9 @@ func main() {
tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA,
tls.TLS_RSA_WITH_AES_256_CBC_SHA, tls.TLS_RSA_WITH_AES_256_CBC_SHA,
tls.TLS_RSA_WITH_AES_128_CBC_SHA, tls.TLS_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA, tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA}
tls.TLS_RSA_WITH_RC4_128_SHA}
cert, err := tls.LoadX509KeyPair(*tlsCertFile, *tlsKeyFile) cert, err := tls.LoadX509KeyPair(*tlsCertFile, *tlsKeyFile)
if err != nil { if err != nil {