issues with curl and certificates