当前位置:网站首页>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 ,

边栏推荐
- The difference between cache and buffer
- 解决缓存击穿问题
- 【学习笔记】zkw 线段树
- clion mingw64中文乱码
- JNA learning notes 1: Concepts
- Initialization script
- Introduce six open source protocols in detail (instructions for programmers)
- Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
- 线程池拒绝策略最佳实践
- User management summary of mongodb
猜你喜欢

PAcP learning note 1: programming with pcap

QQ medicine, Tencent ticket

1、深拷贝 2、call apply bind 3、for of for in 区别

How to make join run faster?

My "troublesome" subordinates after 00: not bad for money, against leaders, and resist overtime

Cmake learning and use notes (1)

将数学公式在el-table里面展示出来

基于鲲鹏原生安全,打造安全可信的计算平台

DHCP 动态主机设置协议 分析

单片机原理期末复习笔记
随机推荐
【黑马早报】华为辟谣“军师”陈春花;恒驰5预售价17.9万元;周杰伦新专辑MV 3小时播放量破亿;法华寺回应万元月薪招人...
LeetCode_ Binary search_ Medium_ 153. Find the minimum value in the rotation sort array
1、深拷贝 2、call apply bind 3、for of for in 区别
Differences between MySQL storage engine MyISAM and InnoDB
Cmu15445 (fall 2019) project 2 - hash table details
我那“不好惹”的00后下属:不差钱,怼领导,抵制加班
Grep of three swordsmen in text processing
PCAP学习笔记二:pcap4j源码笔记
Isprs2021/ remote sensing image cloud detection: a geographic information driven method and a new large-scale remote sensing cloud / snow detection data set
How did Guotai Junan Securities open an account? Is it safe to open an account?
Ogre入门尝鲜
Clion mingw64 Chinese garbled code
《开源圆桌派》第十一期“冰与火之歌”——如何平衡开源与安全间的天然矛盾?
Esp32 ① compilation environment
[QNX Hypervisor 2.2用户手册]6.3.4 虚拟寄存器(guest_shm.h)
cmake 学习使用笔记(一)
Unity build error: the name "editorutility" does not exist in the current context
centso7 openssl 报错Verify return code: 20 (unable to get local issuer certificate)
JS缓动动画原理教学(超细节)
How to make the new window opened by electorn on the window taskbar