How to use PFX files and newman with Postman?

Using *.pfx files in Postman CLI newman can be tricky. Here how to do it without any problems. First you need to have those pfx files in your location, because we will need a path for that resource. Then just create file Cert-list.json and put below content inside it.

[{
"name": "Dev or Test Server",
"matches": ["https://dufajn.pl/*"],
"pfx": {"src": "./path_to_your_pfx_file.pfx"},
"passphrase": "your_pass_for_pfx_file"
}]

So now we just need to use the proper command to let know newman that we want to include this pfx file with our run. Try to type commend like that:

newman run collection.json -e environment_variables.json --ssl-client-cert-list Cert-list.json

3 thoughts on “How to use PFX files and newman with Postman?

  • 2023/05/03 at 22:33
    Permalink

    This method not working.. we are getting “unsupported” error

    Reply
    • 2023/07/04 at 21:03
      Permalink

      Where exactly you get this unsupported error?

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *