Make check_ssl_cert sni compatible