4

I am trying to execute the POSTMAN collection with multiple requests using the NEWMAN CLI tool.

All the requests in the collections are executed successfully with postman but when i execute with newman tool it's failed and it show an error as 'read ECONNRESET' at request (please help me how to fix it ) Newman eroor

PavanS
  • 317
  • 1
  • 6
  • 14
  • 1) What version of Newman are you using? 2) Are you using Newman docker container? 3) Which Node version installed on your system? – Divyang Desai Nov 29 '19 at 05:39
  • @Div thanks for the reply i am using all the latest versions of node and newman . After all i find out that i have certificate .pfx in postman when i executed scripts and it worked fine . I need to know how to pass the .pfx certificate file in newman CLI. i am not sure how to do this ? – PavanS Nov 29 '19 at 09:02
  • Alright. You can all the newman commands [here](https://www.npmjs.com/package/newman#ssl-client-certificates) – Divyang Desai Nov 29 '19 at 09:12
  • @Div i was having issues with using a command SSL Certificate (pfx file) any suggestions u can give ? its throwing an error – PavanS Dec 01 '19 at 01:42

1 Answers1

2

newman run option to pass the certificate:

--ssl-client-cert: The path to the public client certificate file.


please check the documentation.

sudipn
  • 619
  • 5
  • 14
  • Just for the clarification that when we use the .PEM certificate file we need to pass both key and password ?! – PavanS Dec 10 '19 at 19:47