简体   繁体   English

debian:buster docker 图像上没有安装证书?

[英]No installed certificates on debian:buster docker image?

I am following these guidelines in a way to find what ca-certificates are out of the box installed on debian:buster docker image.我正在遵循这些指南,以查找安装在debian:buster docker 图像上的开箱即用的 ca 证书。

However it turns out the file with the corresponding information is not there.但是,事实证明具有相应信息的文件不存在。

▶ docker run -it debian:buster  bash
root@0259e94be9c4:/# awk -v cmd='openssl x509 -noout -subject' '
>     /BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt
bash: /etc/ssl/certs/ca-certificates.crt: No such file or directory
root@0259e94be9c4:/#

Does debian:buster come with no preinstalled certs at all? debian:buster是否根本没有预装证书?

the Package "ca-certificates" is not installed in the docker image you need to install it at first: Package“ca-certificates”未安装在 docker 映像中,您首先需要安装它:

apt-get install -y ca-certificates

then you can find the cert in:然后您可以在以下位置找到证书:

/etc/ssl/certs/ca-certificates.crt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM