卷曲 SSL 证书

Mar*_*vec 5 ubuntu curl certificate docker

我在 ubuntu 服务器上下载 docker 时遇到问题。

\n\n

如果我输入:

\n\n
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\n
Run Code Online (Sandbox Code Playgroud)\n\n

我得到:

\n\n
curl: (60) SSL certificate problem: unable to get local issuer certificate\nMore details here: https://curl.haxx.se/docs/sslcerts.html\n\ncurl failed to verify the legitimacy of the server and therefore could not\nestablish a secure connection to it. To learn more about this situation and\nhow to fix it, please visit the web page mentioned above.\n
Run Code Online (Sandbox Code Playgroud)\n\n

我用谷歌搜索并尝试了几种想法,例如:

\n\n
sudo apt install apt-transport-https ca-certificates curl software-properties-common\n\nsudo apt-get install ca-certificates\n
Run Code Online (Sandbox Code Playgroud)\n\n

但没有任何帮助,...

\n\n

如果我做

\n\n
cd /etc/ssl/certs/; wget https://curl.haxx.se/ca/cacert.pem.sha256; shasum -c cacert.pem.sha256; rm -f cacert.pem.sha256\n
Run Code Online (Sandbox Code Playgroud)\n\n

我得到:

\n\n
--2019-06-03 12:19:31--  https://curl.haxx.se/ca/cacert.pem.sha256\nResolving curl.haxx.se (curl.haxx.se)... 151.101.194.49, 151.101.130.49, 151.101.66.49, ...\nConnecting to curl.haxx.se (curl.haxx.se)|151.101.194.49|:443... connected.\nERROR: cannot verify curl.haxx.se's certificate, issued by \xe2\x80\x98emailAddress=our.email,...OU=..,L=..ST=,..NC=..,O=..C=..\xe2\x80\x99:\n  Unable to locally verify the issuer's authority.\nTo connect to curl.haxx.se insecurely, use `--no-check-certificate'.\n
Run Code Online (Sandbox Code Playgroud)\n\n

我该如何解决这个问题,以及如何找到由我们的电子邮件签名的证书,...

\n