centos8 https访问报错

服务器升级到centos8,当通过CURL来访问内网https地址的时候,会遇到以下几点问题(我们见招拆招):

1. error:060800C8:digital envelope routines:EVPDigestInitex:disabled for FIPS

# fips-mode-setup --disable,这个操作需要重启才能生效,并不是systemctl restart sssd就可以的啦,逆操作:fips-mode-setup --enable


2. error:141A318A:SSL routines:tlsprocessskedhe:dh key too small

# update-crypto-policies --set LEGACY,注意不要重启,重启后update-crypto-policies --show的结果有可能不是LEGACY。

所以添加到开机执行

# vi  /etc/rc.local   

添加到新行保存  update-crypto-policies --set LEGAC


3. error:1425F102:SSL routines:ssl
chooseclientversion:unsupported protocol

#vim /etc/crypto-policies/back-ends/opensslcnf.config的内容,默认CENTOS8是使用TLSv1.2,需要手动改成TLSv1)

原文地址:https://www.cnblogs.com/gaobo543013306/p/15293415.html