nommer
nommer

Reputation: 2958

How do fix newman error self signed certificate?

I get this error when running newman v.3.2.0:

# failure detail 1. Error self signed certificate

Upvotes: 21

Views: 15514

Answers (2)

pringi
pringi

Reputation: 4672

At least since newman 5.2.4 you can specify the path to a certificate or to a CA as a command line option.

Example for a Trusted CA specify:

--ssl-extra-ca-certs /etc/postman/trustedca.crt

You can also use for a single trusted server certificate:

--ssl-client-cert <path_to_file>

This can be used as :

newman run some-collection.json --ssl-extra-ca-certs trustedca.crt

More information at: https://github.com/postmanlabs/newman/blob/develop/README.md#ssl

Upvotes: 0

nommer
nommer

Reputation: 2958

Fixed this by running this:

$ newman run examples/sample-collection.json --insecure

instead of

$ newman run examples/sample-collection.json

Upvotes: 59

Related Questions