# Certificates for MQTT have \`https://\` as \`Host\` option

**URL:** <https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943>\
**Category:** Help Hub\
**Tags:** certificates, authentication, mqtt\
**Created:** [February 21, 2024, 1:07pm UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943 "2024-02-21T13:07:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![flight-engineer-6573](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@flight-engineer-6573](https://community.postman.com/u/flight-engineer-6573)\
**Post date:** [February 21, 2024, 1:07pm UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/1 "2024-02-21T13:07:57Z")

</div>

**Problem/Solution attempt**  
I am trying to subscribe to a Topic from the AWS IoT Core MQTT broker using the Postman App (Windows).

- I’ve added the MQTT connection
- I need to add the certificates for authenticating, but under `Host` there is only the default option `https://`, not the `mqtts://` that is required
- I tried adding the certificates and using the MQTT endpoint in the `Host` field (even though it says `https://`) but this timesout when connecting

I have used the same settings / certificates with another desktop application - [https://mqtt-explorer.com/](https://mqtt-explorer.com/) and it works correctly.

How can I add the certificates correctly for MQTT in Postman?

**Platform Details**  
Postman for Windows  
Version=10.23.5  
UI version=10.23.5-ui-240220-1406  
Architecture=x64  
OS platform=win32 10.0.19045

**Certificate settings I can’t change**

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/9/e/9ecebed5f6c90a71401515d6137ba72d7157af9a.png)

---

<div class="post-metadata">

**Author:** ![docking-module-admin](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/docking-module-admin/32/27595_2.png) [@docking-module-admin](https://community.postman.com/u/docking-module-admin)\
**Post date:** [February 26, 2024, 11:18am UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/2 "2024-02-26T11:18:43Z")

</div>

Hi @flight-engineer-6573! Thanks for your post! You mentioned using the AWS IoT core, which I believe uses ALPN. Right now we don’t support ALPN but something we will look to add in the near future. Right now the way you have added certificates is correct, but thanks for letting us know about how this process is unclear and I’ll take a look at how we can improve this area.

---

<div class="post-metadata">

**Author:** ![docking-module-admin](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/docking-module-admin/32/27595_2.png) [@docking-module-admin](https://community.postman.com/u/docking-module-admin)\
**Post date:** [February 27, 2024, 7:46am UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/3 "2024-02-27T07:46:08Z")

</div>

@flight-engineer-6573 wanted to follow up. I was looking into your issue and saw you’re connecting over port 8883, which is the MQTT port that shouldn’t require ALPN.

Could you let me know if, when you enter the URL in the request itself, you are using [YOUR\_URL]:8883, mqtt://[YOUR\_URL]:8883, or mqtts://[YOUR\_URL]:8883? Could you also screenshot your settings tab of the request?

---

<div class="post-metadata">

**Author:** ![flight-engineer-6573](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@flight-engineer-6573](https://community.postman.com/u/flight-engineer-6573)\
**Post date:** [February 27, 2024, 9:09am UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/4 "2024-02-27T09:09:39Z")

</div>

Hi @docking-module-admin, thanks for looking into it.

**Request url format:**  
[YOUR\_URL]:8883

However, I’ve also tried your other suggestions as well:  
mqtt://[YOUR\_URL]:8883  
mqtts://[YOUR\_URL]:8883

With no protocol set or with mqtt:// Postman shows “connecting” for a long period then stops (with no message)

With mqtts:// Postman shows “connecting” very briefly than stops (with no message)

**Settings tab** :  
(I have tried with and without “Enabled server certificate verification” enabled)

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/f/3ff864533a978e75b3369c0614441837a88811f6.png)

---

<div class="post-metadata">

**Author:** ![marlene.hildebrandeh](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@marlene.hildebrandeh](https://community.postman.com/u/marlene.hildebrandeh)\
**Post date:** [March 13, 2024, 3:30pm UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/6 "2024-03-13T15:30:47Z")

</div>

Hello, I have the same issue as @flight-engineer-6573.

I have tried:

mqtts://MY\_URL:8883

Both times with and without “Enabled server certificate verification” enabled.

Everytime Postman tries for a long time to connect, then I receive the error message “An error occurred: connect ETIMEDOUT”

I would be interested in the solution to this issue as well.

---

<div class="post-metadata">

**Author:** ![docking-module-admin](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/docking-module-admin/32/27595_2.png) [@docking-module-admin](https://community.postman.com/u/docking-module-admin)\
**Post date:** [March 13, 2024, 3:35pm UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/7 "2024-03-13T15:35:10Z")

</div>

@marlene.hildebrandeh thanks for letting us know! Could you confirm your platform details?

---

<div class="post-metadata">

**Author:** ![docking-module-admin](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/docking-module-admin/32/27595_2.png) [@docking-module-admin](https://community.postman.com/u/docking-module-admin)\
**Post date:** [March 13, 2024, 6:35pm UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/8 "2024-03-13T18:35:12Z")

</div>

@marlene.hildebrandeh @flight-engineer-6573 I’m having a bit of trouble reproducing this. I was able to connect to an AWS IoT device using certificates on port 8883.

Here is my setup:  
 ![Screenshot 2024-03-13 at 11.32.49 AM](https://us1.discourse-cdn.com/getpostman/original/3X/a/5/a5527c009261fb66bd8a3d6cb54749162f356886.png)

 ![Screenshot 2024-03-13 at 10.58.03 AM](https://us1.discourse-cdn.com/getpostman/original/3X/4/f/4fd0692f56dffde98979c6939bbc44fdf66d54b7.png)

I’m using Postman version 10.24 and the certificate and private key provided by AWS. Let me know if you notice anything different on your end so we can troubleshoot the issue better.

---

<div class="post-metadata">

**Author:** ![marlene.hildebrandeh](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@marlene.hildebrandeh](https://community.postman.com/u/marlene.hildebrandeh)\
**Post date:** [March 14, 2024, 11:15am UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/9 "2024-03-14T11:15:23Z")

</div>

Hi @docking-module-admin, thank you so much for your help and swft replies. As it turns out, my issues are unrelated to Postman, but in fact linked to the setup of my company’s network ☹

---

<div class="post-metadata">

**Author:** ![flight-engineer-6573](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@flight-engineer-6573](https://community.postman.com/u/flight-engineer-6573)\
**Post date:** [March 15, 2024, 9:40am UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/10 "2024-03-15T09:40:41Z")

</div>

Thanks @docking-module-admin, I’ve just updated Postman, started from scratch again and setup exactly as per your screenshots and it works now!

Thanks for the help 🙂

---

<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:** [April 14, 2024, 9:41am UTC](https://community.postman.com/t/certificates-for-mqtt-have-https-as-host-option/57943/11 "2024-04-14T09:41:42Z")

</div>

Closed on April 14, 2024, 9:41am UTC

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