Have a collection with requests against https sites using self signed certificates
Use newman as a lib inside a node application. (Node 16 used)
Run the application and check result
Newman has no problems running requests against websites with valid certificates. But running requests against sites with not-valid certificates returns HTTP-503 status with response body like:
Untrusted SSL Server Certificate
Your request contacted a host which presented a certificate signed by an untrusted issuer.
This is typically caused by a Web Site presenting an incorrect or invalid certificate, but could be because of a configuration error.
This error should not exist with option insecure: true set or with custom sslExtraCaCerts of the requested site.
Running this collection in postman works with switched off "SSL certificate validation"
newman -v
): 5.3.2Steps to reproduce the problem:
Untrusted SSL Server Certificate Your request contacted a host which presented a certificate signed by an untrusted issuer. This is typically caused by a Web Site presenting an incorrect or invalid certificate, but could be because of a configuration error.
This error should not exist with option
insecure: true
set or with customsslExtraCaCerts
of the requested site.Running this collection in postman works with switched off "SSL certificate validation"