Changed order of TLS ciphers
This commit is contained in:
parent
ac7fe8afee
commit
b245c56143
12
main.go
12
main.go
@ -58,14 +58,14 @@ func main() {
|
|||||||
|
|
||||||
tlsConfig.PreferServerCipherSuites = true
|
tlsConfig.PreferServerCipherSuites = true
|
||||||
tlsConfig.CipherSuites = []uint16{
|
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_ECDHE_RSA_WITH_AES_256_CBC_SHA,
|
||||||
tls.TLS_RSA_WITH_RC4_128_SHA,
|
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
|
||||||
tls.TLS_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_128_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)
|
cert, err := tls.LoadX509KeyPair(*tlsCertFile, *tlsKeyFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user