Refactored set default CA certificates path and file to allow env vars to override defaults.