Resource icon

XF 2 Tip How to use self signed certs for SSL/TLS IMAP and SMTP

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
19,969
Points
823

Reputation:

ENXF NET submitted a new resource:

How to use self signed certs for SSL/TLS IMAP and SMTP - How to disable certificate/peer verification for IMAP and SMTP so you can use a self-signed cert

If you have an SMTP or IMAP server that has a self signed certifcate, you will need to make 2 file edits to prevent a connection failure.

src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php

paste this after
PHP:
$options = [];
PHP:
$options = [];
src/vendor/laminas/laminas-mail/src/Protocol/Imap.php

replace this
PHP:
$this->socket = fsockopen($host, $port, $errno, $errstr, self::TIMEOUT_CONNECTION);
with this...

Read more about this resource...
 
Top