From b245c56143675d2385ac8b9508ed0de89dd39a35 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Fri, 30 Aug 2013 01:29:02 +0100 Subject: [PATCH] Changed order of TLS ciphers --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 11bda6a..2a02732 100644 --- a/main.go +++ b/main.go @@ -58,14 +58,14 @@ func main() { tlsConfig.PreferServerCipherSuites = true tlsConfig.CipherSuites = []uint16{ - tls.TLS_ECDHE_RSA_WITH_RC4_128_SHA, - tls.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA, - tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, - tls.TLS_RSA_WITH_RC4_128_SHA, - tls.TLS_RSA_WITH_3DES_EDE_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_RC4_128_SHA, + tls.TLS_RSA_WITH_AES_256_CBC_SHA, tls.TLS_RSA_WITH_AES_128_CBC_SHA, - tls.TLS_RSA_WITH_AES_256_CBC_SHA} + tls.TLS_RSA_WITH_3DES_EDE_CBC_SHA, + tls.TLS_RSA_WITH_RC4_128_SHA} cert, err := tls.LoadX509KeyPair(*tlsCertFile, *tlsKeyFile) if err != nil {