Check cert with curl, and use different S3 url