douzhi19900102 2014-12-20 18:14
浏览 123

Mac OS X上的XAMPP SSL问题

I have XAMPP installed on Mac OS X and am having an issue running this code

<?php
    echo file_get_contents("https://extensions.bolt.cm/list.json");
?>

I get the following error

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in index.php on line 2

mod_ssl is loaded and OpenSSL is enabled

allow_url_fopen and allow_url_include are both on

I have seen other threads talk about uncommenting the extension=php_openssl.dll line in the php.ini file, but that appears to be for Windows. If there is something similar I am supposed to do on OS X, I would appreciate the advice.

Any help would be greatly appreciated!

Update

Here are the results to the code that Alexander suggested running

bool(false)
string(69) "SSL certificate problem: self signed certificate in certificate chain"
string(0) ""

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料