Mar*_*vec 5 ubuntu curl certificate docker
我在 ubuntu 服务器上下载 docker 时遇到问题。
\n\n如果我输入:
\n\ncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\nRun Code Online (Sandbox Code Playgroud)\n\n我得到:
\n\ncurl: (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.\nRun Code Online (Sandbox Code Playgroud)\n\n我用谷歌搜索并尝试了几种想法,例如:
\n\nsudo apt install apt-transport-https ca-certificates curl software-properties-common\n\nsudo apt-get install ca-certificates\nRun Code Online (Sandbox Code Playgroud)\n\n但没有任何帮助,...
\n\n如果我做
\n\ncd /etc/ssl/certs/; wget https://curl.haxx.se/ca/cacert.pem.sha256; shasum -c cacert.pem.sha256; rm -f cacert.pem.sha256\nRun 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'.\nRun Code Online (Sandbox Code Playgroud)\n\n我该如何解决这个问题,以及如何找到由我们的电子邮件签名的证书,...
\n| 归档时间: |
|
| 查看次数: |
3181 次 |
| 最近记录: |