gpt4 book ai didi

.net - System.Net.Mail.SmtpClient 是否使用 SSL、TLS、StartTLS 或组合?

转载 作者:太空宇宙 更新时间:2023-11-03 12:47:59 25 4
gpt4 key购买 nike

这个问题有关于协商服务器可用的最佳 TLS/SSL 版本的答案:Which versions of SSL/TLS does System.Net.WebRequest support?

但是我认为 SmtpClient 使用常规 Smtp 进行传输,顶部是 TLS - 据我了解它是 StartTLS。

我正在记录一些软件(打勾练习),需要说明使用了哪些协议(protocol),而安全协议(protocol)确实不是我的专业领域,所以我该如何解释呢?

最佳答案

根据documentation它只能执行显式 TLS(即 STARTTLS)而不能执行隐式 TLS(SMTPS):

The SmtpClient class only supports the SMTP Service Extension for Secure SMTP over Transport Layer Security as defined in RFC 3207. In this mode, the SMTP session begins on an unencrypted channel, then a STARTTLS command is issued by the client to the server to switch to secure communication using SSL. See RFC 3207 published by the Internet Engineering Task Force (IETF) for more information.

关于.net - System.Net.Mail.SmtpClient 是否使用 SSL、TLS、StartTLS 或组合?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36740581/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com