"error: unable to get local issuer certificate" When Running Newman Against Hosted Collection
Version and environment information:
- Newman Version 5.0.0
- Windows 10 Build 1909 Professional, computer is on a corporate network using ZScaler
- Running via CLI
- First time using newman, cannot say if new
- Expected behaviour: Collection is run through Newman for a hosted collection same as local
- Command / script used to run Newman:
newman run https://www.postman.com/collections/{id} -e .\QA.postman_environment.json
Steps to reproduce the problem:
- Execute the Newman command against a hosted collection, passing in local environment variables
Troubleshooting already done that did not help:
- Tried setting strict-ssl key to false in npm
- Tried setting the cafile key to the Base-64 encoded CER file for the ZScaler root cert, the first intermediate certificate, AND the second intermediate certificate exported from Chrome DevTools
I've Googled this a bunch and found mostly things revolving around Linux usage, but we'll be using newman on Windows exclusively. How do we need to configure newman or NPM if it's going to need to communicate on a network that uses ZScaler?
Hey @tparikka,
Are you still facing issues here?
Hey @tparikka
I'm going to close this issue out for now but if you're still having problems, we can open it again.
@DannyDainton Hi, finally had an opportunity to come back to this and try again. It has been months since I attempted so I had to dig up my notes. Yes, I still do encounter the same error as before, including when I tried using the --insecure flag on the newman request.
Hi @DannyDainton, can this issue be reopened or should I open a new report?
Hi @DannyDainton, my team is hoping to make newman test runs a part of our build pipeline and this is blocking us. Has your team had an opportunity to look at this, or is there anything else in terms of diagnostics that we can provide to enable troubleshooting?
As far as I know, we haven't had the chance to look into this at the moment.
We have several other things that are being worked on right now and we will be updating the thread with me information, once we have a clearer idea about release time lines.