随笔 - 21  文章 - 0  评论 - 0  阅读 - 3221

Liunx部署NetCore,接口获取mysql本地数据时报:The SSL connection could not be established, see inner exception

今天将 NET Core程序发布到一台新的服务器,程序中有https请求第三方的Api,但是报了如下的错误:
The SSL connection could not be established, see inner exception

解决办法
下面命令查询 openssl 的路径

openssl version -a


然后将 CentOS 默认的 openssl CA 证书拷贝到 OPENSSLDIRcp /etc/pki/tls/cert.pem /usr/local/openssl/

Done!

posted on   侗家小蚁哥  阅读(132)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示