最近使用 wordpress 外掛,透過 curl 可能會發生錯誤,如果遇到這類型的錯誤:

是因為許多網站都在使用全球證書,該證書已於 2021 年 9 月 30 日到期。參考:
解決方法是使用新的 crt 檔案替代 wordpress 目錄:wp-includes/certificates 底下的 ca-bundle.crt 檔案。
crt 檔案下載網址:https://github.com/WordPress/WordPress/blob/master/wp-includes/certificates/ca-bundle.crt
而這個問題預估在 wordpress 5.9 版會修復。
參考: