docker - 自签署ssl根证书 certificate signed by unknown authority
黄舟
黄舟 2017-04-21 10:57:06
0
1
941

我在内网一台服务器上搭建了私有CA中心来做自授权ssl证书,将生成的根证书导入浏览器后访问https没有再出现警告,但我在另外一台CentOS上使用curl https://username:password@my.domain.com:8000/也正常,但docker login https://my.domaian.com:8000/时报错:

certificate signed by unknown authority (possibly because of "crypto/rsa: 
verification error" while trying to verify candidate authority certificate "my.domain.com")

问题是,在centos上怎样做才能够信任这个自签署的根证书CA呢

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

répondre à tous(1)
巴扎黑

docker possède son propre répertoire de stockage de certificats, le chemin est /etc/docker/certs.d/. Pour plus de détails sur le format, veuillez consulter la documentation officielle : https://github.com/docker/docker/blob/master/docs/sources/articles/certificates.md

De plus, différentes manières d'ajouter des certificats racine au système d'exploitation :

http://kb.kerio.com/product/kerio-connect/server-configuration/ssl-certificates/adding-trusted-root-certificates-to-the-server-1605.html

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!