Category: ssl

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…