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

相关推荐
tan77º1 小时前
【Linux网络编程】Socket - UDP
linux·服务器·网络·c++·udp
czhc11400756631 小时前
Linux 76 rsync
linux·运维·python
蓝易云2 小时前
Qt框架中connect()方法的ConnectionType参数使用说明 点击改变文章字体大小
linux·前端·后端
花落已飘3 小时前
多线程 vs 异步
linux·网络·系统架构
PanZonghui3 小时前
Centos项目部署之Nginx部署项目
linux·nginx
码出钞能力4 小时前
linux内核模块的查看
linux·运维·服务器
星辰云-4 小时前
# Linux Centos系统硬盘分区扩容
linux·运维·centos·磁盘扩容
聽雨2375 小时前
02每日简报20250704
linux·科技·金融·生活·社交电子·娱乐·媒体
Maki Winster5 小时前
Peek-Ubuntu上Gif录制工具-24.04LTS可装
linux·ubuntu·peek
Maki Winster6 小时前
在 Ubuntu 下配置 oh-my-posh —— 普通用户 + root 各自使用独立主题(共享可执行)
linux·运维·ubuntu