Postman returns "Error: passed a null parameter" when using Client Certificate
Asked Answered
G

2

6

I requested certificate from my CA (on a MAC) then exported the private key as p12 file. In Postman preferences I configured Client Certificates by PFX file/passphrase: enter image description here

I know it's reading it since I get incorrect passphrase error if set a wrong one.

Once it's set, I get error shown below in Postman Console: "Error: passed a null parameter" and the request is not being sent to server -- any ideas?

enter image description here

Glisten answered 27/4, 2022 at 22:52 Comment(0)
G
3

I got it to work after exporting from KeyChain both the "private key" and "certificate" together to a p12 file.

Glisten answered 28/4, 2022 at 20:8 Comment(2)
Can you elaborate the steps what you have done so that you were able to solve it in postman ?Emilie
Thank you Ben! had the same problem from curl but this fixed itPheon
A
0

Thanks, it worked for me. @Kiran you need to export the certificate with a private key like below:

X509Certificate2 certificate = X509Certificate2.CreateFromPem(certificatePem,privateKeyPEM); certificate.Export(X509ContentType.Pkcs12, password);

Appalachian answered 5/2 at 16:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.