Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

rejected our certificate?

Discussion in 'E-mail Discussion' started by iLinux85, Jan 1, 2017.

  1. iLinux85

    iLinux85 Active Member

    Mar 28, 2010
    Likes Received:
    Trophy Points:
    I have two servers .. webserver and mailserver

    After i upgrade php to 5.6 i tried to send smtp mails through php script i got error messages in mail server log says

    TLS error on connection from [IP ADDRESS]:48936 (SSL_accept): error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca
    TLS client disconnected cleanly (rejected our certificate?)
    I dig deep and i found that OpenSSL changes in PHP 5.6.x Stream wrappers now verify peer certificates and host names by default when using SSL/TLS

    PHP: OpenSSL changes in PHP 5.6.x - Manual

    My php script setting was smtp port 465 and ssl encryption

    Sending emails only works now if i set smtp port to 25 and no encryption

    I want to know how to disable verify peer check in php or if there anything i should do in my mail server to pass this problem

    Note : my mail server have no valid certification on
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

Share This Page