I have a cert served by Lighty / LE for a long time now very happy! Now I want to add another vhost and another cert for that vhost [same IP] In Lighty.conf is looks like;
This produced no errors and success message. Only thing is when I test newdomain with an online SSL test it says
Certificate name mismatch
Try these other domain names (extracted from the certificates): www.cpcnw.co.uk
We were able to retrieve a certificate for this site, but the domain names listed in it do not match the domain name you requested us to inspect. It's possible that:
The web site does not use SSL, but shares an IP address with some other site that does.
I tried restarting lightly and rebooting the OS but it looks like the new combined certificate isn't working for the newdomain?
After restarting Lighty SSL Server Test (Powered by Qualys SSL Labs) analyse gives me an A+ however there is a section in red bold "Alternative names www.cpcnw.co.ukMISMATCH" and if I go to a browser the site is still showing as unsecured.
I have put the entire $SERVER["socket"] == ":443" section right at the top of my lighttpd.conf and included the individual additional domain ssl.pemfile = directive underneath the relevant vhost section.