当前位置:网站首页>Centso7 OpenSSL error Verify return code: 20 (unable to get local issuer certificate)
Centso7 OpenSSL error Verify return code: 20 (unable to get local issuer certificate)
2022-07-07 13:25:00 【Poplar siege lion】
Problem recurrence :
because centos7 default openssl The version is 1.1.0k, When I compile the media service , need openssl edition 1.1.1 above , All previous lower versions deleted openssl, Manually compiled a 1.1.1k Version of , The media service is running normally , also CA Verify normal .
As a result, the server was powered off and restarted last night , When I was getting Telecom MQ Data time ,openssl Has been an error ,Unhandled exception. System.Security.Authentication.AuthenticationException:The remote certificate was rejected by the provided RemoteCertificateValidat
Use openssl Command to test the connection status :
openssl s_client -connect msgpush.ctwing.cn:16651
The following results are obtained :
Tips , Unable to load local certificate . Various schemes are used , Compile various versions of openssl, Not yet. .
All kinds of helpless , Can only analyze the online environment openssl( Online is ECS ,openssl by 1.02K) With the local server openssl The difference between , Another few painful hours . Finally checking openssl Version of the command , See the clue , This order is very important :
openssl version -d
Results printed online :
The result of the local server :
Enter online environment openssl The catalog of : Carry out orders
ll
Show results :
The key point is this directory , Look at the part marked in red , The soft link here is the location of the certificate
Let's see , Local server
You can see , I don't see the soft link of the certificate ,
So the reason for everything is here , Didn't tell the system openssl The location of the certificate used . So we can create a soft link .
ln -s /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem cert.pem
The results are as follows :
When we use... Again openssl When the test command of : succeed ,
边栏推荐
- [QNX hypervisor 2.2 user manual]6.3.4 virtual register (guest_shm.h)
- 人均瑞数系列,瑞数 4 代 JS 逆向分析
- php——laravel缓存cache
- Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
- Digital IC Design SPI
- error LNK2019: 无法解析的外部符号
- How to make join run faster?
- Grep of three swordsmen in text processing
- LIS 最长上升子序列问题(动态规划、贪心+二分)
- MongoDB内部的存储原理
猜你喜欢
如何让join跑得更快?
聊聊伪共享
[dark horse morning post] Huawei refutes rumors about "military master" Chen Chunhua; Hengchi 5 has a pre-sale price of 179000 yuan; Jay Chou's new album MV has played more than 100 million in 3 hours
About the problem of APP flash back after appium starts the app - (solved)
Differences between MySQL storage engine MyISAM and InnoDB
数字ic设计——SPI
Vscade editor esp32 header file wavy line does not jump completely solved
《开源圆桌派》第十一期“冰与火之歌”——如何平衡开源与安全间的天然矛盾?
OSI seven layer model
10 张图打开 CPU 缓存一致性的大门
随机推荐
数字ic设计——SPI
Vscode编辑器ESP32头文件波浪线不跳转彻底解决
“新红旗杯”桌面应用创意大赛2022
DrawerLayout禁止侧滑显示
Common text processing tools
Isprs2021/ remote sensing image cloud detection: a geographic information driven method and a new large-scale remote sensing cloud / snow detection data set
Digital IC Design SPI
JS中为什么基础数据类型可以调用方法
How did Guotai Junan Securities open an account? Is it safe to open an account?
Storage principle inside mongodb
How to reset Firefox browser
信号强度(RSSI)知识整理
MongoDB复制(副本集)总结
JS判断一个对象是否为空
MongoDB的导入导出、备份恢复总结
[Presto profile series] timeline use
File operation command
[untitled]
QQ medicine, Tencent ticket
MongoDB内部的存储原理