Symfony Mailer TLS Certificate Name Validation Error

How can I turn off name validations in symfony/mailer TLS connections. I am getting the following error.

Warning: stream_socket_enable_crypto(): Peer certificate CN=smtp.somename.com' did not match expected CN=smtp.someothername.com’

In swift mailer I can simply set verify_peer_name to false. How do you do it with the new symfony/mailer?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *