# Self signed certificate error Postman CLI

**URL:** <https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517>\
**Category:** Help Hub\
**Tags:** authentication, cli\
**Created:** [November 21, 2024, 9:38am UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517 "2024-11-21T09:38:24Z")\
**Posts on this page:** 8\
**Page:** 1

<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 21, 2024, 9:38am UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517/1 "2024-11-21T09:38:24Z")

</div>

Hello,

When I try to run a collection in the postman CLI I’m getting this error when I’m trying to login on the cli.

Can’t find any solutions on the internet.  
I already have SSL certificate verification turned off.

---

<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:** [November 21, 2024, 10:35am UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517/2 "2024-11-21T10:35:30Z")

</div>

Hey @Coxjeffrey 👋

What that’s the command that you’re using for the Postman CLI?

---

<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 21, 2024, 10:38am UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517/3 "2024-11-21T10:38:35Z")

</div>

Hey Danny,

postman login --with-api-key {Generated API key}

---

<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:** [November 21, 2024, 11:09am UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517/4 "2024-11-21T11:09:40Z")

</div>

That’s the command to login but not to run the Collection.

It would be something like `postman collection run ...`

> **[Postman CLI command options | Postman Learning Center](https://learning.postman.com/docs/postman-cli/postman-cli-options/)**
>
> Postman is a collaboration platform for API development. Postman's features simplify each step of building an API and streamline collaboration so you can create better APIs—faster.

---

<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 26, 2024, 6:47am UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517/5 "2024-11-26T06:47:21Z")

</div>

Yes I know, but I get the error when login in in postman CLI.

I’m just not able to login without an error.

Is there a work around so I dont have to login in the command prompt and just can run my tests? With the newman cp It was working just fine, but now I have updated my tests to work with the new postman commands but I’m not able anymore to run them automated without able to login

---

<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:** [December 5, 2024, 1:29pm UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517/6 "2024-12-05T13:29:38Z")

</div>

Any Idea on this? I can run automated test in the cloud and al my request run normally. Just not able to login to the postman CLI.

---

<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 5, 2024, 2:33pm UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517/7 "2024-12-05T14:33:41Z")

</div>

What did you mean by updating tests to use the new Postman commands? Are you now using Scripts from the Package Library?

You can also run that Collection without logging in via the CLI, it should work like Newman does.

```auto
postman collection run "collection.json"

```

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [January 4, 2025, 2:34pm UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517/8 "2025-01-04T14:34:07Z")

</div>

Closed on January 4, 2025, 2:34pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
