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. enter image description here

Share:
15,028
Yuriy Shkraba
Author by

Yuriy Shkraba

Updated on June 05, 2022

Comments

  • Yuriy Shkraba
    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
    Crhistian Ramirez almost 5 years
    All 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
    Crhistian Ramirez almost 5 years
    PFX is now supported as of version 7
  • Prince Paul
    Prince Paul almost 4 years
    This 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
    Alex. A almost 3 years
    I add my PFX file, but when clicking 'Add' it tells me I need a host.
  • Jan Doggen
    Jan Doggen almost 3 years
    @Alex.A Of course you need to fill in the host, certificates are 'per domain'