# Google IoT connection MQTT to Node-Red using JWT?

**URL:** https://discourse.nodered.org/t/google-iot-connection-mqtt-to-node-red-using-jwt/22283
**Category:** General
**Created:** [26 February 2020 11:58 UTC](https://discourse.nodered.org/t/google-iot-connection-mqtt-to-node-red-using-jwt/22283 "2020-02-26T11:58:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hsn548](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hsn548/32/17530_2.png) [@hsn548](https://discourse.nodered.org/u/hsn548)
#### Post date: [26 February 2020 11:58 UTC](https://discourse.nodered.org/t/google-iot-connection-mqtt-to-node-red-using-jwt/22283/1 "2020-02-26T11:58:50Z")

</div>

I am using Node-Red and trying to connect to MQTT Broker at [mqtt.googleapis.com:8883](http://mqtt.googleapis.com:8883) using JWT.

I am able to connect via python script but i am not able to connect using Node-Red. The problem is I am using a cryptochip from microchip to generate JWT and by using this JWT i am able to connect using Python script but not using Node-red.

Now what i am doing for Node-Red is, I am generating a JWT using the same python script and saving it in environment variable. And then i am putting this JWT(Environemnt variable) in Node-Red in Password field, but no luck so far...

I am not getting where the problem is. Is this problem lies because of the JWT or there is another problem ?

Thanks a lot!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [26 April 2020 11:58 UTC](https://discourse.nodered.org/t/google-iot-connection-mqtt-to-node-red-using-jwt/22283/2 "2020-04-26T11:58:50Z")

</div>

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