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

Sak*_*pak 4 postman newman

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

newman run e_api.json -e ent_env.json --reporters cli,html
Run Code Online (Sandbox Code Playgroud)

但它告诉我 unable to verify the first certificate error

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

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

newman run e_api.json -e ent_env.json --reporters cli,html --ignore-https_proxy
Run Code Online (Sandbox Code Playgroud)

Div*_*Div 16

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

newman run e_api.json -e ent_env.json --reporters cli,html --insecure
Run Code Online (Sandbox Code Playgroud)