Sakib Espak
Sakib Espak

Reputation: 375

How can I ignore SSL certificate error in Newman

I use the following thing in the command line

newman run e_api.json -e ent_env.json --reporters cli,html

But it shows me unable to verify the first certificate error

How can I ignore https/ssl certificate error?

I tried using following command, but it's not working.

newman run e_api.json -e ent_env.json --reporters cli,html --ignore-https_proxy

Upvotes: 15

Views: 17781

Answers (2)

Divyang Desai
Divyang Desai

Reputation: 7864

As per Newman documentation, there is an option --insecure to disable strict SSL.

newman run e_api.json -e ent_env.json --reporters cli,html --insecure

Upvotes: 32

Saber Motamedi
Saber Motamedi

Reputation: 439

I have same problem

it is my first command :

newman run "PostmanExport.json"

on this command I resaved this error:

 unable to verify the first certificate 

I change my Command to this

 newman run "PostmanExport.json" --insecure

Upvotes: 5

Related Questions