Title: SSL error
Last modified: May 17, 2023

---

# SSL error

 *  Resolved [doubledrat](https://wordpress.org/support/users/doubledrat/)
 * (@doubledrat)
 * [3 years ago](https://wordpress.org/support/topic/ssl-error-43/)
 * I’m getting the following error
 * “SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto():
   Peer certificate CN=`int-srv-g6-1.xxx.xxx' did not match expected CN=`smtp.xxx.
   xxx’ SMTP server error: QUIT command failed”
 * the certificate in question DOES have smtp.xxx.xxx as a SAN subject alternate
   name. int-srv-g6-1 is the SPN subject principle name.
 * It seems your plugin is only checking the SPN and not the available SANs

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [chanuka789](https://wordpress.org/support/users/chanuka789/)
 * (@chanuka789)
 * [3 years ago](https://wordpress.org/support/topic/ssl-error-43/#post-16750293)
 * ![](https://i0.wp.com/i.postimg.cc/j2Lb0VbJ/Screenshot-2023-05-19-092244.png?
   resize=537%2C145&ssl=1)
 * there is anyone to fix this error?
 *  Plugin Support [Dake](https://wordpress.org/support/users/dakeg/)
 * (@dakeg)
 * [3 years ago](https://wordpress.org/support/topic/ssl-error-43/#post-16759057)
 * Hi [@doubledrat](https://wordpress.org/support/users/doubledrat/)
 * Thanks for reaching out to us and we apologise for the delay.
 * Please kindly know, that the error you shared is returned by your SMTP server.
 * We suspect that your web host is redirecting SMTP traffic to their server. This
   is why the certificate presented didn’t match the hostname.
 * Please, contact your web host support with the same full SMTP log after sending
   a test email, and they can look into the issue for you.
 * Unfortunately, we can’t perform fixes from our end because this issue is hosting/
   SMTP server-related.
 * Please note that these types of errors usually only come up with the Other SMTP
   mailer, as it’s not an API-based mailer. In cases where ongoing issues arise 
   while using the Other SMTP mailer, we generally recommend switching to a transactional
   mailer option (all mailers except the _Other SMTP_ and _Default (none)_ option).
 * WP Mail SMTP has documentation on setting up each of the available mailers here:
   [https://wpmailsmtp.com/docs/a-complete-guide-to-wp-mail-smtp-mailers/](https://wpmailsmtp.com/docs/a-complete-guide-to-wp-mail-smtp-mailers/).
 * As an alternative, you can consider using SendLayer which offers a free trial
   or you can try using Sendinblue/Brevo which offers a free tier.
 * [@chanuka789](https://wordpress.org/support/users/chanuka789/)
 * Please create a new thread in our [support forum](https://wordpress.org/support/plugin/wp-mail-smtp/)
   of your own and share the full error log that you received after sending a test
   email (please ensure to strip away any credentials or email addresses.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘SSL error’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

## Tags

 * [Certificate](https://wordpress.org/support/topic-tag/certificate/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 2 replies
 * 3 participants
 * Last reply from: [Dake](https://wordpress.org/support/users/dakeg/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/ssl-error-43/#post-16759057)
 * Status: resolved