How to use self signed certs for SSL/TLS IMAP and SMTP.

Subject Information

Category Name XenForo 2.x Tips and Guides
TOPIC TITLE How to use self signed certs for SSL\/TLS IMAP and SMTP.
Thread starter AnimeHaxor
Start date
Replies
Views
First message reaction score
LAST MESSAGE BY AnimeHaxor

AnimeHaxor

Retro-NulledTeam
Staff member
Administrator
Moderator
Registered
Joined
Nov 22, 2015
Messages
6,354
Reaction score
42,360
Points
113
Website
www.nullscripts.net
Site Script
XenForo
AnimeHaxor 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['ssl']['verify_peer'] = FALSE;
$options['ssl']['verify_peer_name'] = FALSE;

src/vendor/laminas/laminas-mail/src/Protocol/Imap.php

replace this
PHP:
$this->socket =...

Read more about this resource...