Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.
I am using flags -k and --insecure (I tried to use only one too), but I can’t get it to work, I run collection like this
newman run ./collection.json --ssl-client-cert-list ./ssl-client-cert.json -k --insecure
but I am still getting ssl errors. I tried different param order, changing ssl-client-cert-list to -ssl-client-cert and --ssl-client-key, but I always end up with ssl error
[errored] self-signed certificate
Confirmed that in curl when I use --cert --key --insecure there is no ssl error
newman run -h , shows -k and --insecure
newman -v , shows 6.0.0
I even tried setting NODE_TLS_REJECT_UNAUTHORIZED=0, and in that case I end up with this, when I run collection
(node:119) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to ‘0’ makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Usenode --trace-warnings ...to show where the warning was created)
[errored] SSL Error: DEPTH_ZERO_SELF_SIGNED_CERT
I am running newman commands from container, newman is installed like this.
RUN npm install newman newman-reporter-xunit
&& apk -U add curl bash httpie py-pip jq
&& pip install yq
I got this error from ci/cd script and even if I manually get into container (docker exec -it id bash) and run newman command directly.
Any idea what is causing this problem ?
Edit: Tried with version 5.3.2 and i got the same ssl errors