我尝试连接一个可从主机(Windows10Enterprise)系统访问的远程弹性集群。
我通过curl https://url.to.target:443测试了主机的连接。得到了‘确定,它的搜索’-响应。
当我在webserver-container (Debian GNU/Linux 10 (buster))中尝试相同的方法时,它失败了,原因是:
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. 有没有使用主机证书存储的简单方法?
发布于 2021-07-20 21:36:40
ARG BASE_IMAGE
FROM $BASE_IMAGE
COPY ./yourcert.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates --fresh$myCert='/usr/local/share/ca-certificates/yourcert.crt';
https://stackoverflow.com/questions/61119773
复制相似问题