Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 PHP 5.6、MySQLi 和 SSL 连接到数据库。但是,我收到错误:
对等证书 CN=`hostname' 与预期的 CN=`hostname' 不匹配
使用时有没有办法关闭此检查mysqli::real_connect()?我知道这使中间人帐户更容易。
mysqli::real_connect()
有几个选项,因为我认为没有办法直接在 PHP 中执行此操作(https://bugs.php.net/bug.php?id=68344)