互联网技术 / 互联网资讯 · 2024年4月4日

SSL报错:getimagesize()警告:SSL操作失败,错误代码1

今天在给一个外贸网站安装主题的时候,导入完毕DEMO数据,网站前台图片显示的位置报错,内容如下:

出现这个问题的原因是证书问题,解决办法如下:

1、下载ceRt证书到服务器任意位置,地址:https://cuRl.haxx.se/ca/cACERt.peM
2、修改php.ini 配置文件里面的openSSl.cafile= 为 openSSl.cafile=服务器目录/cACERt.peM
3、重新执行即可~
————————————————
方法来源:https://blog.csdn.net/deFAult7/article/details/77008973

OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.

登录免费注册