newman icon indicating copy to clipboard operation
newman copied to clipboard

"error: unable to get local issuer certificate" When Running Newman Against Hosted Collection

Open tparikka opened this issue 5 years ago • 6 comments

Version and environment information:

  1. Newman Version 5.0.0
  2. Windows 10 Build 1909 Professional, computer is on a corporate network using ZScaler
  3. Running via CLI
  4. First time using newman, cannot say if new
  5. Expected behaviour: Collection is run through Newman for a hosted collection same as local
  6. Command / script used to run Newman: newman run https://www.postman.com/collections/{id} -e .\QA.postman_environment.json

Steps to reproduce the problem:

  1. Execute the Newman command against a hosted collection, passing in local environment variables

Troubleshooting already done that did not help:

  1. Tried setting strict-ssl key to false in npm
  2. 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?

tparikka avatar Apr 13 '20 22:04 tparikka

Hey @tparikka,

Are you still facing issues here?

DannyDainton avatar Aug 22 '20 07:08 DannyDainton

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 avatar Aug 28 '20 21:08 DannyDainton

@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.

tparikka avatar Sep 03 '20 16:09 tparikka

Hi @DannyDainton, can this issue be reopened or should I open a new report?

tparikka avatar Sep 14 '20 16:09 tparikka

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?

tparikka avatar Oct 22 '20 15:10 tparikka

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.

DannyDainton avatar Oct 22 '20 16:10 DannyDainton