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

你可能感兴趣的:(centos,ssl,linux)