doufan3958
2017-12-12 17:05
浏览 64
已采纳

SSL操作失败,代码为1 whit smtp

After December 3, i cant send Emails whit smtp from php (Codeigniter), i have not changed anything, I do not know what is happening. Does anyone know if there is any update that left some function obsolete in some version of PHP?

Message: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Filename: libraries/Email.php

Thanks for help!

图片转代码服务由CSDN问答提供 功能建议

12月3日之后,我无法从php(Codeigniter)发送电子邮件whit smtp,我没有改变任何东西,我这样做 不知道发生了什么。 是否有人知道在某些版本的PHP中是否有任何更新导致某些功能过时?

 消息:fsockopen():SSL操作失败, 代码1. OpenSSL错误消息:错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败
 
文件名:libraries / Email.php 
   
 
 

感谢您的帮助!

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

  • duandan1995 2017-12-16 01:00
    最佳回答

    I already solve this problem. I realized that there is a lot of disinformation on the internet about this topic.

    I hope this can be useful!

    If you running PHP 5.3.7 or later.

    1. Generate an vbs file from this file. https://raw.githubusercontent.com/bagder/curl/master/lib/mk-ca-bundle.vbs
    2. Open a Command Prompt as Administrator and run

      C:>mk-ca-bundle.vbs

    3. After finish that process you need to modify the php.ini.

      openssl.cafile=C:\ca-bundle.crt

    4. Restart the IIS web site and its all

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题