Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 5028

Using SSL cert for ‘Trusted TLS’ connection

$
0
0

Replies: 0

How can I specify in the plugin a local certificate used to verify the client to a TLS server and achieve “Trusted TLS” for the communication.

The plugin works fine for an “Anonymous TLS” to an SMTP server but I cannot achieve “Trusted TLS” without have the plugin also pass my certificate.

I also know the certificate I want to use works because if I send mail using postfix outside of the plugin, I get a “Trusted TLS” connection.

I have tried the following snippet to add in the cert to no avail:

add_filter(‘wp_mail_smtp_custom_options’, function( $phpmailer ) {
$phpmailer->SMTPOptions = array(
‘ssl’ => array(
‘local_cert’ => ‘/etc/ssl/private/cert.pem’
)
);
return $phpmailer;
}
);

Your help is appreciated.

M


Viewing all articles
Browse latest Browse all 5028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>