ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
### 在利用OSS进行上传文件时,在本地调试发现都会报SSL证书异常? ``` RequestCoreException: cURL resource: Resource id #130; cURL error: SSL certificate problem: unable to get local issuer certificate (60) ``` ### 解决方法 下载配置证书 ``` [https://curl.haxx.se/ca/cacert.pem](https://curl.haxx.se/ca/cacert.pem) or [https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt](https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt) ``` 在使用的php版本中 找到php.ini设置证书,首先需要把下载的证书保存下来后续好使用这个证书的绝对路径 ``` [curl] ; A default value for the CURLOPT\_CAINFO option. This is required to be an ; absolute path. curl.cainfo='D:\phpstudy\Extensions\php\php7.3.4nts\extras\ssl\ca-bundle.crt' ``` 设置好后重启niginx或者apache 既可 亲测可用 (* ̄︶ ̄)