首页 > 系统相关 >Centos SSL 过期问题三个解决方案

Centos SSL 过期问题三个解决方案

时间:2022-12-01 16:02:12浏览次数:57  
标签:http Centos certificate 过期 CA bundle SSL ca


解决方案地址: http://www.megaleecher.net/SSL_Certificate_Verification_Error_in_Linux#axzz3P9axfRfp

 

返回错误信息如下:

fatal: unable to access 'https://github.com/gmarik/Vundle.vim.git/': SSL certificate problem, verify that the CA cert is OK. Details:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

 

 

 

The reason for the error is older version of CentOS 5.XX having expired certificate authority bundles, the root certificate bundle is located at :



/etc/pki/tls/certs/ca-bundle.crt



.

Solution One : Disable SSL for Github (Fastest)
Execute the command



git config --system http.sslVerify false



on console and retry connecting, this will simply bypass the SSL verification. Do mind that this can be dangerous from security point of view, SSL signature verification exists to safeguard against man in the middle attacks and this disables that safety feature. Use only when other solution's shared below does not work.




Centos SSL 过期问题三个解决方案_.net


Solution Two : Update the CA certificate bundle (Recommended)
Use


yum update openssl


or equivalent command to get the latest version of OpenSSL library which will renew the working set of CA certificates (ca-bundle.crt).

Solution Three : Replace the old CA certificate's using cURL
Use curl and replace the certificate bundle with new ones using


curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt


Read more: ​​Fixing the "error: SSL certificate problem, verify that the CA cert is OK" Error On Linux | Megaleecher.Net​​​ ​​http://www.megaleecher.net/SSL_Certificate_Verification_Error_in_Linux#ixzz3P9bZrWZi​

标签:http,Centos,certificate,过期,CA,bundle,SSL,ca
From: https://blog.51cto.com/u_3457306/5902311

相关文章

  • nginx证书填写路径报错:SSL: error:0200107B:system library:fopen:Unknown error:fope
    nginx配置ssl证书时,启动报错,无法找到证书文件,报错日志如下:2021/11/2415:52:19[emerg]4124#3800:cannotloadcertificate"E:ginx-1.21.4\ssl\6667030_xxxx.pem":BIO_n......
  • centos7 设置时间同步
    chrony时间同步配置 时间的同步有两个命令:ntp(123udp端口)和chrony(323udp端口),这里介绍一下chrony的简单配置chrony由chrony包提供,chrony是服务端客户端一体的,既可以做......
  • nginx SSL安装
    nginx最新下载地址 http://nginx.org/en/download.htmlNginx官网提供了三个类型的版本Mainlineversion:Mainline是Nginx目前主力在做的版本,可以说是开发版Stablever......
  • macos m1虚拟机安装centos8
    一、安装vmware虚拟机1.1个人使用可获得免费许可证,注册用户激活即可。网址:https://customerconnect.vmware.com/web/vmware/evalcenter?p=fusion-player-personal&sourc......
  • centos7上安装coturn搭建turn/stun服务-WebRTC
    coturn是一个免费的开源的TURN/STUN服务器。coturn服务器完整的实现了STUN/TURN/ICE协议,支持P2P穿透防火墙。1.STUN服务器用于获取设备的外部网络地址。2.TURN服务器是在......
  • Centos安装Nodejs简单方式
    Node.js是一个基于ChromeV8引擎的​​JavaScript​​​运行时。本文主要讲的是如何在Linux即​​Centos上安装Nodejs的简单方式​​​,有比设置环境变量更加简单的方式......
  • 在CentOS编译Git源码
    ​​Git​​​是一个​​免费的开源​​分布式版本控制系统,旨在处理从小到小到的所有内容具有速度和效率的超大型项目。Git​​易于学习​​​,​​占用空间很小,性能快如闪......
  • Centos7搭建gitlab
    1·、安装ssh服务:yuminstall-ycurl policycoreutils-pythonopenssh-server   2、启动ssh服务并设置为开机自启:systemctlenablesshdsystemctlstart......
  • 【arm64】centos7安装nginx_vts_exporter,实现监控
    由于官方nginx_vts_exporter是没有arm架构的包的,最新版本也只有源码包,需要arm安装包或者安装最新版本,只能自己下载源码包进行编译安装 nginx_vts_exporter是用go写的,自......
  • Linux:CentOS7-yum仓库本地源和网络源配置(完整版)
    1配置环境介绍本篇文章介绍配置yum仓库使用本地源和网络源的详细过程,整个过程的代码将会贴出,经过测试可按此过程成功配置在我的Linux系统上使用。虚拟机Linux:centOS7.8......