OpenSSL: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small问题解决

问题:

部署了一台新的Ubuntu20机器,在wget指定产出仓库的output.tar.gz文件时,报以下错误:

OpenSSL: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small

原因:

Ubuntu20默认 SSL 安全级别较高,默认为2,需修改配置将为1安全级别。

解决方法:

vim /etc/ssl/openssl.cnf

# 添加到配置文件的开头
openssl_conf = default_conf

# 添加到配置文件尾部
[ default_conf ]
ssl_conf = ssl_sect

[ssl_sect]
system_default = system_default_sect

[system_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT:@SECLEVEL=1

重新wget即可成功。

 

参考:Ubuntu 20.04 – how to set lower SSL security level?

欢迎关注下方“非著名资深码农“公众号进行交流~

发表评论

邮箱地址不会被公开。