https://fbcs.co.uk/self-signed-multiple-domain-ssl-certificates/ Try adding subjectAltName to the self-signed cert