因此,我在调试时意外地在服务器上发现了这个错误。当我使用wget https://example.com/通过wget请求API时,我得到了The certificate of «example.com» is not trusted.我还运行了c_rehash,它确实添加了几个缺少的链接,但没有改变结果。此外,在同一台服务器上通过PHP请求相同的文档也很好。
我还尝试
但是,当我尝试使用openssl verify验证证书时,我得到了error 20 at 0 depth lookup:unable to get local issuer certificate。如果我显式地指定证书颁发机构(openssl verify apns.pem -CAfile entrust_2048_ca.pem),但我已经按照“将证书导入系统范围的证书颁发机构数据库”中的指示在系统上显式</
操作系统: macOS大Sur我想通过https从带有wget的webserver下载一些文件,但是我得到了错误消息:Unable to locally为什么curl可以在不做任何事情的情况下验证证书,而wget却不能?workingDownload I也尝试以pem格式显式地导出根ca并传递它,仍然没有通过openssl:openssl<