buildroot编译的时候遇到SSL证书验证错误

类似这样的报错

Resolving wayland.freedesktop.org (wayland.freedesktop.org)... 147.75.198.156
Connecting to wayland.freedesktop.org (wayland.freedesktop.org)|147.75.198.156|:443... connected.
ERROR: cannot verify wayland.freedesktop.org's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’:
  Issued certificate has expired.

其根本原因是,很多的网址都使用了Let's Encrypt的免费ssl证书。而Let's Encrypt原本的证书链DST Root CA X3在21年9月30日过期了

解决办法,更新本机的ca证书
yum install ca-certificates

参考
https://mender.io/blog/quick-fix-for-lets-encrypt-root-certificate-expiry
https://cloudraya.com/knowledge-base/fix-broken-letsencrypt-ssl-certificate-due-to-expired-root-ca-certificate/

PS:如果遇到某些包需要fw下载的,可以预先用其他工具下载好,直接放入 buildroot/dl 的目录

你可能感兴趣的:(buildroot编译的时候遇到SSL证书验证错误)