Nedim
Nedim

Reputation: 541

Postman Error: Self signed certificate in certificate chain

I try to test REST api in Postman but every time I try to POST I get the following error

Error: self signed certificate in certificate chain.

I have tried with the SSL certificate verification on and off but both methods dont work. Postman is also updated to latest v7.3.6. Tbh I dont know what to try anymore and would really appreciate any tip.

Upvotes: 53

Views: 142458

Answers (5)

Josef Kafka
Josef Kafka

Reputation: 1

My organization is using web proxy.

I had to do 3 things:

  1. export the certificate
  2. add the certificate it in Postman: Settings -> Certificates -> CA Certificates, enable and select exported certificate
  3. disable system proxy in Postman: Settings -> Proxy -> Use system proxy, disable

You could see the proxy in console when making the call with SSL disabled

Upvotes: 0

Stephen Mafole
Stephen Mafole

Reputation: 29

I used mkcert and here's how I managed to get rid of the error :

  • On the Site Information Icon, click where it's written Connection Not Secure enter image description here

  • On the Connection Info dialog, click on More Information enter image description here

  • On Page Info, click on View Certificate enter image description here

  • On the Certificate tab, scroll down till where you'll see 2 links for the PEM files, and download the PEM (Chain) file enter image description here

  • On Postman, go to Settings -> Certificates -> CA Certificates (make sure the toggle button is ON), and specify (click on Select File) the location of your PEM Chain file. enter image description here

There you are !!!

Upvotes: 0

Weihui Guo
Weihui Guo

Reputation: 3997

Adding CA certificates doesn't work for me. My certs are not self-signed but got the same error. Adding client certificates solved my problem. Quoted docs from Postman here: To send requests to an API that uses mutual TLS authentication, add your client certificate to Postman.

enter image description here

Upvotes: 0

Jun ZHOU
Jun ZHOU

Reputation: 161

"make ssl certificate verification on and make it still work"

If you're under organization environment, you can:

  1. Export your organization self-signed certificate as Base-64 encoded X.509 (.CER) format flat file. It could be done from Chrome.
  2. Go back to Postman: Settings -> Certificates -> CA Certificates, switch on and select the file you just exported.

Upvotes: 13

Puneet
Puneet

Reputation: 1741

Go to Postman Settings > General > turn OFF SSL certificate verification enter image description here

Upvotes: 90

Related Questions