Verifying the validity of an SSL certificate