How to use pfx certificate in postman?
15,028
Solution 1
At the time of writing this answer Postman didn't support .PFX files. Ref: Feature Request: Support for PFX
However you can extract cert and private key from the .PFX file using openSSL and configure those in Postman.
Extract key:
openssl pkcs12 -in pfxfile.pfx -nocerts -out key.pem -nodes
Extract cert:
openssl pkcs12 -in pfxfile.pfx -nokeys -out cert.pem
Solution 2
Postman Canary Update has support for PFX Files now. You may use that build instead.
Author by
Yuriy Shkraba
Updated on June 05, 2022Comments
-
Yuriy Shkraba almost 2 years
There is a way to import a .pfx certificate in postman? I need to send a user certificate for testing my API.
-
Crhistian Ramirez almost 5 yearsAll the downloads for openssl seem really shady. Luckily it looks like openssl comes installed on the git bash so you can just open that up and run the above command.
-
Crhistian Ramirez almost 5 yearsPFX is now supported as of version 7
-
Prince Paul almost 4 yearsThis proved extremely useful when I was able to submit .pfx files via Postman but not via python's
requests
. Used these instructions to decompose into .pem files and submitted those instead - worked perfectly, thanks. -
Alex. A almost 3 yearsI add my PFX file, but when clicking 'Add' it tells me I need a host.
-
Jan Doggen almost 3 years@Alex.A Of course you need to fill in the host, certificates are 'per domain'