Fix custom certificate issue. Aliases must be the domain name for the certificate to be used. Alias now set based on filename.