bug: http test fails to retrieve the correct certificate for servers with SNI
Http test sometimes retrieves the wrong certificate. The reason is that the server is presenting certificates for multiple websites on the same IP address. This is achieved by Server Name Indication (SNI). Currently, the http test fails on checking the certificate expiry for websites on servers with SNI.
The http test shall obtain the SSL certificate associated with the given hostname.