file_get_contents(): SSL operation failed with code 1, Failed to enable crypto

前端 未结 16 1921
情歌与酒
情歌与酒 2020-11-22 04:31

I’ve been trying to access this particular REST service from a PHP page I’ve created on our server. I narrowed the problem down to these two lines. So my PHP page looks li

16条回答
  •  一整个雨季
    2020-11-22 04:52

    I fixed this by making sure that that OpenSSL was installed on my machine and then adding this to my php.ini:

    openssl.cafile=/usr/local/etc/openssl/cert.pem
    

提交回复
热议问题