編輯文件 :vi /etc/ssl/openssl.cnf 找到oid_section = new_oids這行並在其下補充以下內容
openssl_conf = default_conf
[default_conf]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
[system_default_sect]
MinProtocol = TLSv1
CipherString = DEFAULT@SECLEVEL=1
這是Linux安裝的openssl版本問題
在docker環境下:為了能夠兼容生產環境中的低版本,需要在生成鏡像的Dockerfile中添加
RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf