Using SSL cert for ‘Trusted TLS’ connection
-
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
- The topic ‘Using SSL cert for ‘Trusted TLS’ connection’ is closed to new replies.