PHPMailer - SSL3_GET_SERVER_CERTIFICATE:证书验证失败
遇到电子邮件应从具有自签名证书的邮件服务器发送的问题,我收到的错误是:
PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in class.smtp.php on line 327.
有没有人遇到过类似的事情?
编辑:
我还尝试设置stream_context参数(参数:SSL上下文选项):
$options['ssl']['verify_peer'] = false;
$options['ssl']['verify_peer_name'] = false;
$options['ssl']['allow_self_signed'] = true;
运气不好,它仍然失败,错误与上面指出的相同。
谢谢。