rejected our certificate?

iLinux85

Well-Known Member
Mar 28, 2010
52
2
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463