我的 ca-certificates.crt 有问题 [英] Issue with my ca-certificates.crt
问题描述
(我使用的是 Ubuntu 14.10.uname -r => 3.16.0-31-generic)
(I am on Ubuntu 14.10. uname -r => 3.16.0-31-generic)
apt-get 更新
Failed to fetch https://get.docker.com/ubuntu/dists/docker/main/binary-amd64/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none.
git clone https://github.com/sdelements/lets-chat.git
I can't clone anything - fatal: unable to access 'https://github.com/sdelements/lets-chat.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none.
docker 运行你好世界
docker run hello-world
Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority.
ls/etc/ssl/certs/ca-certificates.crt -l
ls /etc/ssl/certs/ca-certificates.crt -l
-rw-r--r-- 1 root root 1964 Mar 26 18:19 /etc/ssl/certs/ca-certificates.crt
任何线索将不胜感激.
推荐答案
我所有的 ca 证书都从/usr/share/ca-certificates/*
重新安装软件包将它们放回去
All of my ca certificates were missing from /usr/share/ca-certificates/*
re-installing the package put them back
如果它们在那个位置丢失,执行强制重新加载将显示 0 中的 0:
If they are missing from that location, doing a force reloading will show the 0 of 0:
update-ca-certificates -f
update-ca-certificates -f
Clearing symlinks in /etc/ssl/certs...done.
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
apt-get install --reinstall ca-certificates
apt-get install --reinstall ca-certificates
Preparing to unpack .../ca-certificates_20141019ubuntu0.14.10.1_all.deb ...
Unpacking ca-certificates (20141019ubuntu0.14.10.1) over (20141019ubuntu0.14.10.1) ...
Processing triggers for man-db (2.7.0.2-2) ...
Setting up ca-certificates (20141019ubuntu0.14.10.1) ...
Processing triggers for ca-certificates (20141019ubuntu0.14.10.1) ...
Updating certificates in /etc/ssl/certs... WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
WARNING: Skipping duplicate certificate Go_Daddy_Class_2_CA.pem
173 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
这篇关于我的 ca-certificates.crt 有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!