首页 > 解决方案 > How to use pfx certificate in postman?

问题描述

There is a way to import a .pfx certificate in postman? I need to send a user certificate for testing my API.

标签: certificatessl-certificate

解决方案


在撰写此答案时,Postman 不支持.PFX文件。参考: 功能请求:支持 PFX

但是,您可以使用 openSSL 从 .PFX 文件中提取证书和私钥,并在 Postman 中进行配置。

提取密钥:

openssl pkcs12 -in pfxfile.pfx -nocerts -out key.pem -nodes

提取证书:

openssl pkcs12 -in pfxfile.pfx -nokeys -out cert.pem

推荐阅读