# Postman Cli returns "Error: self signed certificate in certificate chain"

**URL:** <https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429>\
**Category:** Help Hub\
**Tags:** certificates, postmancli\
**Created:** [February 24, 2023, 11:21am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429 "2023-02-24T11:21:15Z")\
**Posts on this page:** 15\
**Page:** 2

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 16, 2023, 2:14pm UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/21 "2023-08-16T14:14:28Z")

</div>

Hey @niin,

Apologies for any delays here - Have you directly contacted our [support team](https://support.postman.com/hc/en-us) or raised an issue in our [Github Issue Tracker](https://github.com/postmanlabs/postman-app-support/issues), to alert the team of this problem?

As this is primarily the Postman Community forum, full of discussions about all things Postman, it can be difficult to see this individual topic and subsequent threads amongst all the other topics created on a daily basis.

If there is anything I can do to help out here, I’m available to do so. ❤

---

<div class="post-metadata">

**Author:** ![niin](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@niin](https://community.postman.com/u/niin)\
**Post date:** [August 21, 2023, 7:23am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/22 "2023-08-21T07:23:32Z")

</div>

Thanks, no issue with any connections, but error remains for postman-cli

---

<div class="post-metadata">

**Author:** ![niin](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@niin](https://community.postman.com/u/niin)\
**Post date:** [August 21, 2023, 7:25am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/23 "2023-08-21T07:25:18Z")

</div>

Thanks, I didn’t even know opening actual tickets were an option. All I ever found was the help forums

---

<div class="post-metadata">

**Author:** ![zacfowler](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/zacfowler/32/27265_2.png) [@zacfowler](https://community.postman.com/u/zacfowler)\
**Post date:** [February 12, 2024, 8:58pm UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/24 "2024-02-12T20:58:45Z")

</div>

For others here, we ran across this problem in our enterprise and stumbled onto the fact that the newman flag `--ssl-extra-ca-certs=path/to/cert.pem` appears to work for the postman cli, even though it’s not documented.

The = may not be required, depending on your specific script. Both `--param=value` and `--param value` formats worked on my end.

---

<div class="post-metadata">

**Author:** ![sglagolevmts](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/sglagolevmts/32/13858_2.png) [@sglagolevmts](https://community.postman.com/u/sglagolevmts)\
**Post date:** [February 13, 2024, 8:48am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/25 "2024-02-13T08:48:44Z")

</div>

It does not work for me. I try this command

> postman login --with-api-key PMAK-…92 --ssl-extra-ca-certs=/etc/ssl/certs/ca-certificates.crt

and get error

> error: unknown option ‘–ssl-extra-ca-certs=/etc/ssl/certs/ca-certificates.crt’

---

<div class="post-metadata">

**Author:** ![casdirk](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@casdirk](https://community.postman.com/u/casdirk)\
**Post date:** [August 6, 2024, 1:23pm UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/26 "2024-08-06T13:23:41Z")

</div>

> [@heamshrij](#):
>
> Hi, have you figured this out? I am having the same issue with Postman cli

Hey, did you figured it out?

---

<div class="post-metadata">

**Author:** ![cleary-wolters-kr](https://avatars.discourse-cdn.com/v4/letter/c/eada6e/32.png) [@cleary-wolters-kr](https://community.postman.com/u/cleary-wolters-kr)\
**Post date:** [August 20, 2024, 7:36am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/27 "2024-08-20T07:36:47Z")

</div>

Still no valid solutions fot this. What are they waiting for?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 20, 2024, 8:24am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/28 "2024-08-20T08:24:47Z")

</div>

Hey folks 👋🏻

I’ll raise this with the team again today to try and find a solution/workaround/more information. 🙏🏻

The Postman Community Forum is not the best or efficient place to raise issues and get them in front of the dev team, as you can see from the thread it’s all Postman users talking to each other. 😅

As new topics get raised in the forum, others get pushed down the list and can get missed very easily.

I recommend that all issues and feature requests are raised on our GitHub Issue Tracker, the links/icons for these can be found in the header of each forum page.

Bugs:

> **[Build software better, together](https://github.com/postmanlabs/postman-app-support/issues/new?assignees=&labels=&projects=&template=Bug_report.yml)**
>
> GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

Feature Requests:

> **[Build software better, together](https://github.com/postmanlabs/postman-app-support/issues/new?assignees=&labels=feature&projects=&template=feature_request.yml&title=%3Ctitle%3E)**
>
> GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.

---

<div class="post-metadata">

**Author:** ![casdirk](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@casdirk](https://community.postman.com/u/casdirk)\
**Post date:** [September 23, 2024, 11:25am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/29 "2024-09-23T11:25:50Z")

</div>

What to include when submitting the [pi π](https://backwards3.info/pi-symbol/) signed certificate issue on github to help the dev team?

---

<div class="post-metadata">

**Author:** ![Coxjeffrey](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Coxjeffrey](https://community.postman.com/u/Coxjeffrey)\
**Post date:** [November 28, 2024, 8:23am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/30 "2024-11-28T08:23:44Z")

</div>

Stil no solution for this? I’m having the same problem.

---

<div class="post-metadata">

**Author:** ![technical-pilot-8836](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@technical-pilot-8836](https://community.postman.com/u/technical-pilot-8836)\
**Post date:** [January 27, 2025, 7:30pm UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/31 "2025-01-27T19:30:19Z")

</div>

Hi Danny, I don’t think anyone ever created the issue : I have just created it

> <https://github.com/postmanlabs/postman-app-support/issues/13424>
>
> \### Is there an existing issue for this?
> 
> \- \[x\] I have searched the tracker for …existing similar issues and I know that duplicates will be closed
> 
> \### Describe the Issue
> 
> Trying to use postman cli on my company network, that has a proxy to decrypt all SSL connexion, and reencrypts with its own self signed certificate.
> Is there a way to provide the PEM certificate to postman-cli ?
> 
> 
> Many users have reported the same problem on the forum:
> https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429
> 
> \### Steps To Reproduce
> 
> 
> C:\\Users\\blayet\>postman-cli login
> √ Postman API Key ... \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> Error: self signed certificate in certificate chain
> 
> 
> \### Screenshots or Videos
> 
> \_No response\_
> 
> \### Operating System
> 
> Windows
> 
> \### Postman Version
> 
> postman-cli 1.13.0
> 
> \### Postman Platform
> 
> Other
> 
> \### User Account Type
> 
> Signed In User
> 
> \### Additional Context?
> 
> no problem with postman desktop on same machine

---

<div class="post-metadata">

**Author:** ![telecoms-operator-22](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@telecoms-operator-22](https://community.postman.com/u/telecoms-operator-22)\
**Post date:** [April 24, 2025, 5:34am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/32 "2025-04-24T05:34:38Z")

</div>

Hey Folks,  
Does this workaround resolves the issue?

1. Export the self-signed certificate in discussion
2. Convert it into `.pem` format if not already
3. Export the path of this `.pem` cert to `NODE_EXTRA_CA_CERTS` variable

your final login command should look something like this:

```bash
NODE_EXTRA_CA_CERTS=path/to/cert.pem postman login --with-api-key *********************

```

---

<div class="post-metadata">

**Author:** ![niin](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@niin](https://community.postman.com/u/niin)\
**Post date:** [December 10, 2025, 11:15am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/33 "2025-12-10T11:15:11Z")

</div>

Completely forgot about this issue. Surpised it hasn’t been resolved after 3½ years.  
I see creating an issue on GitHub hasn’t produced any fixes or even feedback. 12 month anniversary.

We eventually had to start over and create our own rest regression suite using other tools (if you don’t want to write your own tests from scratch, I can recommend both Insomnia and Bruno API).

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [December 10, 2025, 11:20am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/34 "2025-12-10T11:20:22Z")

</div>

Did you try the workaround that was provided here and on the Github issue by @telecoms-operator-22 ?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [December 11, 2025, 7:50am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/36 "2025-12-11T07:50:12Z")

</div>

The workaround was submitted by a Postman Developer.

What are you seeing now, when you use that method? Can you share some screenshots?

[Previous page](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429.md?page=1)
