validate SSL certificate by making a test API call