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!

rejected our certificate?

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

  1. iLinux85

    iLinux85 Active Member

    Joined:
    Mar 28, 2010
    Messages:
    42
    Likes Received:
    2
    Trophy Points:
    58
    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

    Code:
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice