'server certificate does NOT include an ID which matches the server name

Apache crashes with the following error

[ssl:warn] [pid 6056:tid 408] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name

when executing php script that send emails using Swiftmailer on localhost.

How to solve this issue ?

details: XAMPP v3.2.1 with PHP 5.6 , windows 8.1



Solution 1:[1]

In case this helps, I was getting the same error because I have docker started. The trick is to stop it and start apache first.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 golchi