docker push 镜像报错:
Error response from daemon: missing client certificate www.test.com.cert for key www.test.com.key
需要将 证书文件 放在/etc/docker/certs.d/www.test.com/目录下。
ls /etc/docker/certs.d/www.test.com/
ca.crt www.test.com.key www.test.com.cert
如果你使用的是阿里云或其他厂商的免费的SSL证书,只需要下载根证书,后重名为yourdomain.cert。
使用openssl 将pem文件转成crt再转成cert。
openssl x509 -inform PEM -in yourdomain.pem -out yourdomain.crt
openssl x509 -inform PEM -in yourdomain.com.crt -out yourdomain.com.cert
certificate signed by unknown authority
docker pull 报错:
Error response from daemon: Get https://xxx/v2/: x509: certificate signed by unknown authority
评论区