Sketha27
(Sunil Kumar Ketha)
June 9, 2021, 5:51pm
1
Hello Team,
I have a PFX certificate configured for my API and when I hit it from Postman I am able to view the response but when doing the same from Newman I getting a socket hang-up error.
the script which I have used for Newman is below
newman run testSample.postman_collection.json --ssl-client-cert-list certificate.json
the following was configured as certificate.json
[
{
"name": "localhost certificates",
"matches": [
"https://xxxxxxxxxxx.yyy.xxxxxx.com"
],
"pfx": { "src": "/Users/xxxxxx/Documents/devclient.p12" },
"passphrase": "password"
}
]
Note: For matches, I have given the same values which were entered for the host in the certificate tab of the postman
I have also referred to the link below for assistance but no luck
opened 05:40PM - 01 Nov 19 UTC
closed 08:43AM - 02 Sep 20 UTC
feature
getting-started
Hi,
Please help me out here , am getting error **error:0906D06C:PEM routines:… PEM_read_bio:no start line** when pfx file is used with passphrase in newman. Same pfx file works fine in postman.
commandline used as below:
**node newman.js run "collectionfile" -e "environmentfile" --insecure --ssl-client-cert "abc.pfx" --ssl-client-passphrase "abc" --reporters cli,html --reporter-html-export**
1. Newman Version: 4.5.5
2. OS details: Windows 7
3. Are you using Newman as a library, or via the CLI? CLI
3. Did you encounter this recently, or has this bug always been there: Tried this option recently
4. Expected behaviour: PFX with passphare should work
Steps to reproduce the problem:
1. extracted pfx file from jks keystore using keytool
2. Used --ssl-client-cert option to point to pfx and no key file option was given
3. Executing this in CLI throws error **error:0906D06C:PEM routines:PEM_read_bio:no start line**
Kindly let me know if I am missing something over here.