2

Is it possible to pass a certificate in the request being sent by Postman? Basically I need the Postman to send a request to a service so that when the service receives the HttpRequestMessage(request) and does a request.GetClientCertificate(), it will get the certificate being sent by the postman request.

2 Answers 2

1

I noticed that if I enter a https url, Postman gives a pop-up with certificates installed on the computer, which allows to select a certificate and attach to the request. The service which received this request is able to do a request.GetClientCertificate() and get the certificate in the request.

0

You can just add the certificate as a header in your request. To get the value, export the certificate from the certificate store as a base64 encoded file. Open the certificate file in notepad and viola ! You will be able to use the following code :

 var token = headers.GetValues("X-ARR-ClientCert").First();
 var cert = pCert.GetClientCertificateFromHeader(token);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.