当前位置:   article > 正文

Centos 报错:The SSL connection could not be established, see inner exception 解决办法

Centos 报错:The SSL connection could not be established, see inner exception 解决办法

yum update
yum install wget tar make gcc perl pcre-devel zlib-devel
wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz
tar zxvf openssl-1.1.1l.tar.gz
cd openssl-1.1.1l
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib no-shared zlib-dynamic
make
make install
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64
echo “export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64” >> ~/.bashrc
openssl version
就可以看到已经升级为OpenSSL 1.1.1了

openssl version -a
cp /etc/pki/tls/cert.pem /usr/local/openssl/

OPENSSLDIR: “/etc/ssl”
ENGINESDIR: “/usr/lib/engines-1.1”

报错信息:The SSL connection could not be established, see inner exception.

看起来是SSL的问题,查了下资料和服务器安装了 OpenSSL 有关,直接拷贝一份证书过去,问题即可解决,执行以下linux命令即可:

cp /etc/pki/tls/cert.pem /usr/local/openssl/
然后重启你的.net core应用即可。

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/117136503

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/90041
推荐阅读
相关标签
  

闽ICP备14008679号