简体   繁体   中英

PHPMailer: CN Error:ErrorException (E_WARNING) stream_socket_enable_crypto(): Peer certificate CN=`sinaisdeforex.com' did not match expected CN

I have a problem with PHPMaile and SMTPMailer on my LARAVEL site to use Amazon SES SMTP email provider. Try to resolve or troubleshoot credential deletion and create a new method-paid credential rather than resolution. Contact Amazon Support and I was informed: the upload request is failing validation on the PHP side. When you enter my site https://sinaisdeforex.com/contact-us click the button: SEND MESSAGE is reported or error:

 ErrorException (E_WARNING) stream_socket_enable_crypto(): Peer certificate CN=`sinaisdeforex.com' did not match expected CN=`email-smtp.us-east-1.amazonaws.com'

在此处输入图像描述

This is covered in the troubleshooting guide .

You have the Host property in PHPMailer set to sinaisdeforex.com , but the mail server you are connecting to is not responding with a certificate that matches that name, so it's presumably an alias. Fix this by changing the name of the Host you're connecting to to one which matches the certificate, such as email-smtp.us-east-1.amazonaws.com .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM