Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I ignore SSL certificate error in Newman

Tags:

postman

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
like image 284
Sakib Espak Avatar asked Apr 15 '19 08:04

Sakib Espak


People also ask

What happens if SSL certificate is invalid?

Since an invalid SSL/TLS certificate renders the communication channel between client and server unencrypted and data travels in cleartext, this could lead to a serious breach in security.

What causes SSL certificate errors?

An SSL certificate error occurs when the browser cannot verify the SSL certificates returned by the server. When the error happens, the browser blocks the website and warns the user that the website cannot be trusted as shown below. These warnings will negatively impact the user's trust in your website.


2 Answers

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
like image 180
Divyang Desai Avatar answered Sep 27 '22 16:09

Divyang Desai


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
like image 34
Saber Motamedi Avatar answered Sep 27 '22 15:09

Saber Motamedi