【问题标题】:How can I ignore SSL certificate error in Newman如何忽略 Newman 中的 SSL 证书错误
【发布时间】:2019-09-05 05:31:33
【问题描述】:

我在命令行中使用下面的东西

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

【问题讨论】:

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

标签: postman newman


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

    我也有同样的问题

    这是我的第一个命令:

    newman run "PostmanExport.json"
    

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

     unable to verify the first certificate 
    

    我把我的命令改成这个

     newman run "PostmanExport.json" --insecure
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-22
      • 1970-01-01
      • 1970-01-01
      • 2011-02-11
      • 2023-04-07
      • 2012-08-17
      • 1970-01-01
      相关资源
      最近更新 更多