Curl error (60): Peer certificate cannot be authenticated with given CA certificates,yum Cannot down
今天把几台放了一段时间的单板机开了起来
两台装了rocky linux ,一台装了Ubuntu server 20
树莓派的更新yum显示报错
报CA错误,但是我一想,树莓派节点是没有rtc电池的,没有硬件时间,很可能是因为时间问题导致的这个错误
于是我开始查找如何同步时间,centos8 和 rocky linux 8 都默认不带ntpdate,使用chrony进行时间同步,chrony是一个ntp协议的实现,使用起来更简单
只需要如下配置
systemctl enable chronyd.servicesystemctl start chronyd.servicesystemctl status chronyd.service就可以看到● chronyd.service - NTP client/serverLoaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)Active: active (running) since Fri 2018-06-22 11:11:53 UTC; 16h agoDocs: man:chronyd(8)man:chrony.conf(5)Main PID: 270 (chronyd)Tasks: 1 (limit: 11407)CGroup: /system.slice/chronyd.service└─270 /usr/sbin/chronyd
这个时候时间还是没有同步到的,我们需要修改配置文件
/etc/chrony.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#pool 2.pool.ntp.org iburst //注释掉默认的服务器
server ntp.aliyun.com iburst
server ntp.ntsc.ac.cn iburst//添加阿里云和国家授时中心查看服务
[root@node3 yum.repos.d]# chronyc sourcestats -v
210 Number of sources = 2.- Number of sample points in measurement set./ .- Number of residual runs with same sign.| / .- Length of measurement set (time).| | / .- Est. clock freq error (ppm).| | | / .- Est. error in freq.| | | | / .- Est. offset.| | | | | | On the -.| | | | | | samples. \| | | | | | |
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
203.107.6.88 4 3 6 +246.828 4770.108 +217us 566us
114.118.7.161 3 3 6 +500.884 218244 +18ms 1077us
此时我们查看下时间是否正确
[root@node3 yum.repos.d]# timedatectlLocal time: 五 2021-11-26 02:05:36 UTCUniversal time: 五 2021-11-26 02:05:36 UTCRTC time: n/aTime zone: UTC (UTC, +0000)
System clock synchronized: yesNTP service: activeRTC in local TZ: no[root@node1 ~]# timedatectlLocal time: Thu 2021-11-25 21:20:39 ESTUniversal time: Fri 2021-11-26 02:20:39 UTCRTC time: Fri 2021-11-26 02:20:39Time zone: America/New_York (EST, -0500)
System clock synchronized: yesNTP service: activeRTC in local TZ: no
时间是对了,但是时区不对,我们设置时区,再查看时间
root@node3 yum.repos.d]# timedatectl set-timezone Asia/Shanghai
[root@node3 yum.repos.d]#
[root@node3 yum.repos.d]# timedatectlLocal time: 五 2021-11-26 10:06:43 CSTUniversal time: 五 2021-11-26 02:06:43 UTCRTC time: n/aTime zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yesNTP service: activeRTC in local TZ: no
OK,我们再次尝试 yum makecache
[root@node3 yum.repos.d]# yum makecache
Rocky Linux 8 - AppStream 4.6 MB/s | 7.0 MB 00:01
Rocky Linux 8 - BaseOS 2.6 MB/s | 2.9 MB 00:01
Rocky Linux 8 - Extras 643 kB/s | 322 kB 00:00
元数据缓存已建立。
OK ,问题解决~
Curl error (60): Peer certificate cannot be authenticated with given CA certificates,yum Cannot down相关推荐
- Laravel请求钉钉获取access_token报错:cURL error 60: SSL certificate problem: unable to get local issuer certi
请求返回如下: array:3 ["code" => "fail""data" => """msg ...
- php报错cURL error 60: SSL certificate problem: unable to get local issuer certifica
php报错cURL error 60: SSL certificate problem: unable to get local issuer certifica 这是因为没有配置信任的服务器HTTP ...
- cURL error 60: SSL certificate problem: unable to get local issuer certifica 解决
从 https://curl.haxx.se/docs/caextract.html 上下载cacert.pem 打开php.ini 搜索curl.cainfo 与 openssl.cafile,将 ...
- cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决思路
php5.6以上的版本会出现这种问题 解决办法: 访问https://curl.haxx.se/docs/caextract.html,下载cacert.pem,并在php.ini文件添加 curl. ...
- 本地php开发环境出现 cURL error 60
本地php开发环境出现 cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html 解决方案: 到 https://cur ...
- http 使用curl发起https请求 error 60 51
curl_setopt换成 curl_easy_setopt cacert.pem路径换成字符串 CURLOPT_SSL_VERIFYHOST 解决error 51 大概7.28版本后要设置2,不是 ...
- curl error code 60 51 代码解决方式
curl error code 60 命令行加选项-k就可以 curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false); curl error cod ...
- 微信支付curl: (60) SSL certificate problem: unable to get local issuer certificate 解决方法
微信支付curl: (60) SSL certificate problem: unable to get local issuer certificate 解决方法 参考文章: (1)微信支付cur ...
- 【linux】报错整理curl SSL peer certificate or SSH remote key was not OK
前言 今天在使用 curl 命令下载文件时,遇到报错,这里整理并记录一下. 报错内容 SSL peer certificate or SSH remote key was not OK 报错原因 (S ...
最新文章
- OpenCL编程详细解析与实例
- DevExpress Asp.net(6) ASPxLoadingPanel的基本使用
- 一个机械系毕业生的感言
- SM37作业条目的存储表
- Python之数据分析(random模块的正确用法)
- 嵌入式C高质量编程培训心得笔记
- SQL替换字段中一部分字符串
- 软件工程专业英语专用名词翻译
- appfuse mysql_Appfuse学习笔记(1)
- 利用织梦高级搜索功能 , 来定制身份证驾驶证信息查询系统
- 网页中审查元素与查看网页源代码的区别
- win10文件后缀名怎么显示_Win10显示隐藏文件后系统根目录( C盘)文件及文件夹的作用...
- 如何使用FonePaw Video Converter Ultimate将 2D 电影转换为 3D
- 由先序中序得后序,中序后序得先序代码实现
- 基于MATLAB去理解掌握傅里叶级数和傅里叶变换
- Big Faceless Java PDF Viewer library简介
- Electron+Vue的开发经验
- linux操作系统:x86架构,一个良好的运营环境
- 解析新浪微博JSON数据
- 网站服务器取证案例,教你如何通过服务器日志进行入侵取证(转载)
热门文章
- Axios 简单使用指南
- TiDB HTAP特性的应用场景简析
- (3) openssl genrsa(生成rsa私钥)
- gn编译webrtc介绍
- LLC谐振电路(二) 同步整流技术
- Mysql 5.5.8 安装手册
- Linux OS: Write Barriers
- 下载Docker Compose超时的问题(Fail connect to github-production-release-asset-2e65be.s3.amazonaws.com:443)
- Deep Projective 3D Semantic Segmentation
- 摸索 Jenkins 的自动维护方案