Made SSL certificate validation check for expired certificates