【发布时间】:2016-08-28 21:53:32
【问题描述】:
我的 tls.Config 设置为不使用 ECDHE 交换,因此我可以在无需获取客户端密钥的情况下监控我在 wireshark 中的流量。
config = &tls.Config{
Certificates: []tls.Certificate{cpair},
MinVersion: tls.VersionTLS12,
PreferServerCipherSuites: true,
ClientAuth: tls.NoClientCert,
CipherSuites: []uint16{tls.TLS_RSA_WITH_AES_256_CBC_SHA,
tls.TLS_RSA_WITH_RC4_128_SHA,
tls.TLS_RSA_WITH_AES_128_CBC_SHA,
},
}
但是,在分析wireshark 中的流量时,我仍然看到正在使用 ECDHE ciper suiete 建立连接:
62 ssl_decrypt_pre_master_secret: session uses Diffie-Hellman key exchange
(cipher suite 0xC014 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA)
and cannot be decrypted using a RSA private key file.
【问题讨论】:
标签: ssl encryption go tcp