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 Discussions' started by iLinux85, Jan 1, 2017.

  1. iLinux85

    iLinux85 Active Member

    Joined:
    Mar 28, 2010
    Messages:
    37
    Likes Received:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page