当尝试建立到outlook.com 的TLS 通道以中继SMTP 流量时,我遇到连接失败并且必须在没有加密的情况下继续。
这种连接的一个例子:
openssl s_client -starttls smtp -crlf -connect x-com.mail.eo.outlook.com:25 -CApath /etc/ssl/certs/ -cipher DHE-RSA-AES256-SHA
CONNECTED(00000003)
139677700306600:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:177:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 343 bytes and written 137 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---
根据上面的片段,我尝试使用 DHE-RSA-AES256-SHA 进行 TLS。在双方同意并建立 TLS 连接之前不应该重新协商吗?如果其中一方无法使用所有必需的密码和算法,会发生什么情况?