[英]SSL CA cert (path? access rights?)
I am using CentOs 6.6 64bit, and have a problem when using curl. 我正在使用CentOs 6.6 64位,并在使用curl时遇到问题。 The server primarily hosts several wordpress blogs using apache and mysql.
服务器主要使用apache和mysql托管几个wordpress博客。
My simplest means to generate the error is with the following yum command which outputs the below 生成错误的最简单方法是使用以下yum命令输出以下内容
yum list "ca-certi*"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64 error was
14: PYCURL ERROR 77 - "Problem with the SSL CA cert (path? access rights?)"
* base: cosmos.cites.illinois.edu
* epel: mirror.cogentco.com
* extras: mirrors.rit.edu
* updates: mirrors.rit.edu
Installed Packages
ca-certificates.noarch 2014.1.98-65.1.el6 @base
Soutions tried and failed so far based from googling around 到目前为止,基于谷歌搜索的搜索和失败
1) I have tried restarting the VPS, no good 1)我尝试重新启动VPS,没有好处
2) Executing curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt
without any luck 2)执行
curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt
没有任何运气
3) This solution was no good at all, as it relies on yum to solve the SSL problem that yum also suffers http://syslint.com/syslint/curl-77-problem-with-the-ssl-ca-cert-path-access-rights-solved/ 3)这个解决方案一点也不好,因为它依赖于yum来解决你也遇到的SSL问题http://syslint.com/syslint/curl-77-problem-with-the-ssl-ca-cert-路径的访问权限,解决了/
Can I run these yum steps to install with wget?, would you think it would help? 我可以运行这些yum步骤来安装wget吗?你认为它有用吗?
# yum reinstall ca-certificates
# yum reinstall openssl
I think virtualmin had installed some updates in the last 24 hours, is there a log of updates it ran somewhere? 我认为virtualmin在过去的24小时内安装了一些更新,是否有更新的日志记录?
Can anyone please help get around this "Problem with the SSL CA cert (path? access rights?)" problem. 任何人都可以帮助解决这个“SSL CA证书问题(路径?访问权限?)”问题。
TIA TIA
More easy solution for centos 6/7. centos 6/7更容易解决方案。 Remove ca and reinstall certificate.
删除ca并重新安装证书。
rm -f /etc/ssl/certs/ca-bundle.crt && yum reinstall -y ca-certificates
Problem that if you just only reinstall certs. 问题,如果您只是重新安装证书。 This will dont replace ca-bundle.
这将不会取代ca-bundle。 Leave it new with .rpmnew name.
使用.rpmnew名称保留新内容。
this worked for me : centos 6 这对我有用:centos 6
mkdir /usr/src/ca-certificates && cd /usr/src/ca-certificates
mkdir / usr / src / ca-certificates && cd / usr / src / ca-certificates
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/ca-certificates-2015.2.6-65.0.1.el6_7.noarch.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/ca-certificates-2015.2.6-65.0.1.el6_7.noarch.rpm
rpm2cpio ca-certificates-2015.2.6-65.0.1.el6_7.noarch.rpm |
rpm2cpio ca-certificates-2015.2.6-65.0.1.el6_7.noarch.rpm | cpio -idmv
cpio -idmv
cp -pi ./etc/pki/tls/certs/ca-bundle.* /etc/pki/tls/certs/
cp -pi ./etc/pki/tls/certs/ca-bundle.* / etc / pki / tls / certs /
do yes to override 做是的覆盖
to check : 去检查 :
curl -vvv https://www.unixy.net
curl -vvv https://www.unixy.net
Solution from here https://www.virtualmin.com/node/35857 解决方案来自https://www.virtualmin.com/node/35857
nss-softokn breaks yum/rpm in CentOS 6 In order to fix it do the following: nss-softokn在CentOS 6中打破yum / rpm为了解决它,请执行以下操作:
wget http://mirror.centos.org/centos/6/updates/x86_64/Packages/nss-softokn-fr ... wget http://mirror.centos.org/centos/6/updates/x86_64/Packages/nss-softokn-fr ...
rpm2cpio nss-softokn-freebl-3.14.3-19.el6_6.x86_64.rpm | rpm2cpio nss-softokn-freebl-3.14.3-19.el6_6.x86_64.rpm | cpio -idmv
cpio -idmv
cd lib64 cd lib64
cp libfreeblpriv3.* /lib64 cp libfreeblpriv3。* / lib64
yum updaten yum updaten
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.