Hands-on AWS knowledge base for developers Managed Ops
Talk to Us

wget: Unable to locally verify the issuer’s authority

Export PDF Print-friendly layout with a copyright watermark; choose Save as PDF in the print dialog
wget: Unable to locally verify the issuer's authority — wget: Unable to locally verify the issuer's authority

原因

wget 找不到验证证书链所需的 CA 证书:系统 CA 包缺失/过期,或 wget 配置的 ca-certificate 路径错误。

解决

  1. 安装/更新 CA 包:apt install ca-certificates 或 yum install ca-certificates;
  2. 刷新信任库:update-ca-certificates(Debian 系)/ update-ca-trust(RHEL 系);
  3. 核对 /etc/wgetrc 中 ca_certificate 路径;
  4. 临时跳过:wget --no-check-certificate,仅用于测试。