Let's Encrypt 證書 wget 報錯
最近發現一個奇怪的問題,網站使用 let's encrypt 的免費證書,瀏覽器訪問時正常,但是wget的時候報錯。報錯信息如下:
wget https://www.example.com
--2021-11-16 13:00:42-- https://www.example.com/ Resolving www.example.com (www.example.com)... 47.91.21.201 Connecting to www.example.com (www.example.com)|47.21.17.201|:443... connected. ERROR: cannot verify www.example.com's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’: Issued certificate has expired. To connect to www.example.com insecurely, use `--no-check-certificate'.
網上搜索了一波,沒發現什么有效的解決辦法,親測兩種辦法有效。
1、安裝軟件
yum install -y ca-certificates
2、更換簽發機構
因為我使用的是acme.sh 簽發的證書,簽發證書的時候默認使用的是zerossl server,而我特別指定了 let's encrypt directory server,所以此處直接去掉指定的server即可。使用zereossl作為簽發機構。

浙公網安備 33010602011771號