我有一个 Alfred 工作流程,需要从远程服务器中提取图像文件。直到最近,这一切都很好,直到我突然开始收到以下错误imagecreatefromgif()
:
SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
和:
Failed to enable crypto.
它发生在任何 https URL 上,因此它不是远程服务器上的加密。经过大量的谷歌搜索后,我在这个答案中运行了脚本,并且包装器看起来不错:
openssl: yes
http wrapper: yes
https wrapper: yes
wrappers: array (
0 => 'https',
1 => 'ftps',
2 => 'compress.zlib',
3 => 'compress.bzip2',
4 => 'php',
5 => 'file',
6 => 'glob',
7 => 'data',
8 => 'http',
9 => 'ftp',
10 => 'phar',
11 => 'zip',
)
PHP 配置在我的驾驶室之外,所以我有点迷茫。我不知道为什么我的 mac 的 PHP 安装失去了通过 https 读取文件的能力。
有人有任何见解吗?