如何在Newman中忽略SSL证书错误

时间:2019-04-15 08:59:37

标签: postman newman

我在命令行中使用以下内容

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

但这显示了unable to verify the first certificate error

如何忽略https / ssl证书错误?

我尝试使用以下命令,但不起作用。

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

2 个答案:

答案 0 :(得分:2)

根据Newman documentation,有一个选项--insecure禁用严格的SSL。

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

答案 1 :(得分:2)

我也有同样的问题

这是我的第一个命令:

newman run "PostmanExport.json"

在这个命令上我重新保存了这个错误:

 unable to verify the first certificate 

我把我的命令改成这个

 newman run "PostmanExport.json" --insecure