# 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:** 20\
**Page:** 1

<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:** [February 24, 2023, 11:21am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/1 "2023-02-24T11:21:15Z")

</div>

**Short version:**  
API key is valid, Postman recognizes and uses PEM certificate, so why do I get a certificate error when trying to _postman login --with-api-key_?

**Long version:**  
With the new limits on collection runs, I’ve been tasked with figuring out if Postman should remain our paid API tool.

I’ve installed Postman Cli, created an API key in [https://domain-web.postman.co/settings/me/account](https://domain-web.postman.co/settings/me/account) and verified that said API key works.

From my workplace whenever I try to try to login using: _postman login --with-api-key_ I get the error: “Error: self signed certificate in certificate chain”

This is expected as we have our own certificate decrypting all SSL traffic.

Therefor I exported both our own CA root certificate as well as the intermediate certificate _ssldecrypt..local_ and converted both to a PEM certificate using certutil.exe -encode \<ssldecrypt.cer\> mycert.pem

I have added the PEM certificate to Postman from Settings \> Certificate and tested it against [https://postman-echo.com/get](https://postman-echo.com/get)

With my PEM certificate removed I get a _“Warning: self signed certificate in certificate chain”_ in the PM console.

With my PEM certificate uploaded and enabled I have no issues reaching [https://postman-echo.com/get](https://postman-echo.com/get)

**So what am I missing here?**

\_  
Edit:  
I also tried --ssl-client-key and --ssl-client-cert (from Newman) but as expected neither flag is supported by Postman Cli

Snatched the certificate from [postman.com](http://postman.com) (redirected from [postman-echo.com](http://postman-echo.com)), saved is as -pem and added it to my certificate root store

`certutil -addstore -f "Root" postman.pem`

Same error.

For anyone testing the above, you can remove the certificate using the thumbprint and:

`certutil -delstore "Root" <thumbprint>`

---

<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:** [February 28, 2023, 8:09am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/2 "2023-02-28T08:09:04Z")

</div>

Bumping as this is still an issue.

My PEM certificate works fine in the Postman client, but there’s no way to add it for login via Postman Cli.

 ![postmanclierr](https://us1.discourse-cdn.com/getpostman/original/3X/4/d/4df4b19108f8a1ce101ea44ab061fd84172e7a93.jpeg)

Someone else must have had this issue with Postman Cli, so please help if you have a solution

---

<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:** [March 10, 2023, 9:00am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/3 "2023-03-10T09:00:37Z")

</div>

postman login -h returns

```auto
Usage: postman login [options]

Store a Postman API Key to access your Postman resources

Options:
  --alias <alias> Specify the alias of the API key to fetch your resources using it.
  --with-api-key <apikey> Specify the API key directly.
  -h, --help display help for command

```

So apparently no option to define certificate supported on login.  
Could someone from the Postman team kindly tell me how to log in using a self-signed certificate

---

<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:** [March 20, 2023, 7:35am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/4 "2023-03-20T07:35:23Z")

</div>

> [@niin](#):
>
> Could someone from the Postman team kindly tell me how to log in using a self-signed certificate

I guess not 🙁

---

<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:** [March 28, 2023, 9:55am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/5 "2023-03-28T09:55:28Z")

</div>

Well, the collection run limit is now imposed (even on my paid plan), but I still can’t login and my requests for help are ignored by the Postman staff.

Two thumbs down.

---

<div class="post-metadata">

**Author:** ![heamshrij](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@heamshrij](https://community.postman.com/u/heamshrij)\
**Post date:** [April 6, 2023, 6:47pm UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/6 "2023-04-06T18:47:02Z")

</div>

Hi, have you figured this out? I am having the same issue with 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:** [April 12, 2023, 7:58am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/7 "2023-04-12T07:58:30Z")

</div>

Nope, no luck yet, and not a peep from anyone at Postman

---

<div class="post-metadata">

**Author:** ![johnson97michael](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@johnson97michael](https://community.postman.com/u/johnson97michael)\
**Post date:** [April 14, 2023, 1:45pm UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/8 "2023-04-14T13:45:17Z")

</div>

Bump - I am also experiencing the same issue.

---

<div class="post-metadata">

**Author:** ![science-observer-199](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@science-observer-199](https://community.postman.com/u/science-observer-199)\
**Post date:** [April 28, 2023, 12:00am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/9 "2023-04-28T00:00:16Z")

</div>

This may be unrelated but I saw this thread and just wanted to pass along just in case it helps at all. I was just starting to experiment with CLI and was getting errors about unsigned certificate in the request (not the certificate chain as indicated above)-- the login seemed to work ok but the error appeared to be specific to the request. To be clear I’m not attempting to use a certificate so this may be the opposite of what you are attempting but on the off chance this helps wanted to pass along any potential info. In my testing I found I needed to disable the SSL certificate verification toggle in the settings on my account (I think this was already off by default so maybe toggle on and back off and be sure to save). I think also had to visit each request within the collection I was attempting to run and adjust the settings on each individual request and toggle on/off the Enable SSL certificate verification setting and resave each request(again this appeared to be disabled by default but for some reason this step seemed to resolve my particular issue. Hopefully that helps but I’m still brand new to postman and api in general.

---

<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:** [April 28, 2023, 9:27am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/10 "2023-04-28T09:27:38Z")

</div>

Appreciate the suggestion, unfortunately that didn’t solve my issue either.

---

<div class="post-metadata">

**Author:** ![bipool](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bipool/32/15690_2.png) [@bipool](https://community.postman.com/u/bipool)\
**Post date:** [April 30, 2023, 7:50am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/11 "2023-04-30T07:50:10Z")

</div>

Same for me . I am also getting same error , very frustrating

---

<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:** [May 9, 2023, 8:09am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/12 "2023-05-09T08:09:15Z")

</div>

Error remains in v1.1.2

 ![sscic](https://us1.discourse-cdn.com/getpostman/original/3X/b/0/b05a5d66805e243ffcfeaa252091a9b47cca9b42.jpeg)

---

<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:** [May 25, 2023, 9:40am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/13 "2023-05-25T09:40:43Z")

</div>

3 months in and not even a peep from the Postman team, despite being a paying customer

---

<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:** [June 1, 2023, 10:36am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/14 "2023-06-01T10:36:20Z")

</div>

???

thisistwentychars

---

<div class="post-metadata">

**Author:** ![maclazaro](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@maclazaro](https://community.postman.com/u/maclazaro)\
**Post date:** [June 8, 2023, 7:45am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/15 "2023-06-08T07:45:04Z")

</div>

Bumping up as I’m getting this issue as well.

---

<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:** [July 5, 2023, 8:45am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/16 "2023-07-05T08:45:43Z")

</div>

New computer  
New certificate package (verified working in Postman app)  
New version of postman-cli

Same error as in the last 4½ months  
Same silent treatment from Postman team

Also, how soon is ‘coming soon’ for the Postmancli release notes?

> **[Release Notes v1 | Postman CLI](https://www.postman.com/release-notes/postman-cli/)**
>
> View release dates and read notes from postman-cli v1.

---

<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:** [August 7, 2023, 9:30am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/17 "2023-08-07T09:30:57Z")

</div>

I have the same issue with certs and can’t solve it

---

<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:** [August 7, 2023, 5:23pm UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/18 "2023-08-07T17:23:18Z")

</div>

I think, I found the reason of this issue! I tried to make login via postman-cli on several configurations (windows+powershell, ubuntu 18.04, windows+wsl) and I get the error only on my company laptop (windows+wsl) with installed Kaspersky antivirus.

After several hours of searching in google, debugging postman-cli application via gdb and other torments I found this issue on WSL github - [Cannot connect to HTTPS · Issue #3761 · microsoft/WSL · GitHub](https://github.com/microsoft/WSL/issues/3761)

Try to uninstall the Kaspersky Antivirus! Unfortunately, I don’t have admin rights on my working laptop to test this solution, but all my configurations without Kaspersky work fine.

---

<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 9, 2023, 7:47am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/19 "2023-08-09T07:47:48Z")

</div>

I appreciate the extra info, unfortunately we’re not using kaspersky in my organization.

The error remains, but only in postman-cli as the Postman app accepts and uses the certificates I provide, including my organization’s own CA certificate.

What baffles me the most, is that the Postman team has completely ignored this issue for months. Even if this is working as designed (to push people into higher paying plans), the least they could do is tell us as much.

As a tester I’m stuck with Postman for now, but I’m glad to see my oprganization slowly migrating over to Bruno API

---

<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:** [August 9, 2023, 8:20am UTC](https://community.postman.com/t/postman-cli-returns-error-self-signed-certificate-in-certificate-chain/44429/20 "2023-08-09T08:20:02Z")

</div>

I don’t want to excuse the postman team, but most likely you and I have a problem with a self-signed certificate.  
Try to run this command, written on this link [https://support.postman.com/hc/en-us/articles/4416016147991-I-am-having-trouble-adding-client-certificates](https://support.postman.com/hc/en-us/articles/4416016147991-I-am-having-trouble-adding-client-certificates)

> openssl s\_client -state -connect [postman-echo.com:443](http://postman-echo.com:443) | openssl x509 -text

In my case, i don’t have any problems with login in systems where this command works, and have problems, were it does not work.

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