gpt4 book ai didi

git 发送电子邮件失败 "SSL routines:ssl_choose_client_version:unsupported protocol"

转载 作者:行者123 更新时间:2023-12-04 22:39:17 25 4
gpt4 key购买 nike

我正在尝试在 Linux Mint 20 下使用 git send-email。
相同的配置在 Debian Sid 下工作。
现在我得到错误:

mcon@cinderella:~/vocore/__V2__/u-boot$ git send-email --to=u-boot@lists.denx.de /tmp/output/ --smtp-debug
/tmp/output/0000-cover-letter.patch
/tmp/output/0001-Small-fixes-to-reduce-size-and-ensure-correct-consol.patch
/tmp/output/0002-Enlarge-SPL-malloc-area-to-prevent-failure-in-lzma-d.patch
/tmp/output/0003-Fix-missing-__udivdi3-in-SquashFS-implementation.patch
(mbox) Adding cc: Mauro Condarelli <mc5686@mclink.it> from line 'From: Mauro Condarelli <mc5686@mclink.it>'
DEBUG: .../IO/Socket/SSL.pm:1177: global error: Undefined SSL object
DEBUG: .../IO/Socket/SSL.pm:900: local error: SSL connect attempt failed error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
DEBUG: .../IO/Socket/SSL.pm:903: fatal SSL error: SSL connect attempt failed error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=mail2.mclink.it encryption=ssl hello=cinderella.condarelli.it port=465 at /usr/lib/git-core/git-send-email line 1558.
AFAIK 这是由于我的上游邮件程序不接受 TLSv2 协议(protocol)(目前默认强制执行)。
如果这是正确的:我如何说服 git send-email使用 TLSv1?
显然我没有办法强制上游邮件“升级”。

最佳答案

.... server=mail2.mclink.it ... port=465


这是您尝试在此处使用的非常损坏的服务器。看起来它可以做的最好的事情是使用 RC4-MD5 作为密码的 TLS 1.0,这在很多方面都很弱。此密码通常不再在较新版本的 openssl 中编译,因此它很可能不适用于您当前的设置。
但是在端口 25 上也可以在同一服务器上进行 SMTP 访问,包括使用 STARTTLS 的 TLS。这个实例实际上提供了具有强密码的 TLS 1.2。所以最好改变你的设置来使用它。请注意,您必须设置 smtpEncryptiontls在这种情况下,而不是 ssl自从 tls被解释为 SMTP+STARTTLS(通常在端口 25 和 587 上),而 ssl被解释为隐式 TLS(通常在端口 465 上)。

AFAIK this is due to my upstream mailer not accepting TLSv2 protocol (which is currently enforced by default).


TLS 自动使用客户端和服务器都支持的最佳协议(protocol)版本。如果提供更新的协议(protocol)版本,除非服务器太损坏并且阻塞,否则无需显式降级。

IFF this is correct: how do I convince git send-email to use TLSv1?


你不能。无法为发送电子邮件设置协议(protocol)或密码。基于 the source code它只是使用 Perl Net::SMTP,然后使用 IO::Socket::SSL 及其默认设置 - 在脚本中没有尝试覆盖这些设置。有关此的任何建议都可能适用于 git 连接本身,但不适用于 git-send-email。

关于git 发送电子邮件失败 "SSL routines:ssl_choose_client_version:unsupported protocol",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63977549/

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