通过 openssl 工具创建了rootCA
证书,并用其为一个 Web 服务签署了一个自签名证书,在内部网络通过该证书部署了一个 Web 服务。
在本机系统,将 rootCA.pem
文件拷贝到 /etc/pki/trust/anchors/
后执行
sudo update-ca-certificates
用户访问报证书问题:
❯ curl https://cr.mengz.lan/v2/_catalog
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the Web page mentioned above.
可是 root 权限访问确正常:
sudo curl https://cr.mengz.lan/v2/_catalog
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"registry","Class":"","Name":"catalog","Action":"*"}]}]}
系统是 openSUSE Leap 15.4,还需要身特殊的导入方式,才能是非 root 用户也能加载到导入的 CA 证书吗?