简体   繁体   中英

SSL operation failed with code 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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM