# Problem with certificates while building a TTN gateway with Balena cloud

**URL:** <https://forums.balena.io/t/problem-with-certificates-while-building-a-ttn-gateway-with-balena-cloud/344424>\
**Category:** Project help\
**Created:** [August 17, 2021, 7:03am UTC](https://forums.balena.io/t/problem-with-certificates-while-building-a-ttn-gateway-with-balena-cloud/344424 "2021-08-17T07:03:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tallestxxl](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@Tallestxxl](https://forums.balena.io/u/Tallestxxl)\
**Post date:** [August 17, 2021, 7:03am UTC](https://forums.balena.io/t/problem-with-certificates-while-building-a-ttn-gateway-with-balena-cloud/344424/1 "2021-08-17T07:03:43Z")

</div>

At the moment building a gateway with RAK7248 to interact with TTN. Using Balena cloud to roleout the software to the Raspberry pi in theR AK7248. Part of the summer academy. On Balena cloudi see a good working gateway, but it doesn’t connect tot the TTN-stack. it gives these loggings

 ![Schermafbeelding 2021-08-17 om 00.57.46](https://global.discourse-cdn.com/balena/original/2X/0/0cd81ec3d11e770579e6596c533a0a4c3f92dafa.jpeg)  
When I do a restart it gives these loggings: (can’t post a second picture because I am a new user.) its says: Error missing configuration define either TTN\_STACK\_VERSION or TC\_URI and TC\_TRUST

I followed the instruction to the letter but no joy. Can somebody point me in the right direction?

---

<div class="post-metadata">

**Author:** ![Tallestxxl](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@Tallestxxl](https://forums.balena.io/u/Tallestxxl)\
**Post date:** [August 17, 2021, 8:20pm UTC](https://forums.balena.io/t/problem-with-certificates-while-building-a-ttn-gateway-with-balena-cloud/344424/2 "2021-08-17T20:20:26Z")

</div>

After the restart I get this warning in the loggings:

 ![Schermafbeelding 2021-08-17 om 00.53.19](https://global.discourse-cdn.com/balena/original/2X/f/f0a6a78b0f6608e948522ff36565c7e34f551002.jpeg)

Which is strange because I filled the TTN\_STACK\_VERSION with 3 which should result in that TC\_URI and TC\_TRUST will be automatically filled. I tried a lot of different things but am fully stuck ant the moment.

---

<div class="post-metadata">

**Author:** ![Tallestxxl](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@Tallestxxl](https://forums.balena.io/u/Tallestxxl)\
**Post date:** [August 19, 2021, 6:48pm UTC](https://forums.balena.io/t/problem-with-certificates-while-building-a-ttn-gateway-with-balena-cloud/344424/3 "2021-08-19T18:48:13Z")

</div>

Problem solved. I inserted the wrong TC\_KEY.

---

<div class="post-metadata">

**Author:** ![vipulgupta2048](https://avatars.discourse-cdn.com/v4/letter/v/a183cd/32.png) [@vipulgupta2048](https://forums.balena.io/u/vipulgupta2048)\
**Post date:** [August 20, 2021, 5:54am UTC](https://forums.balena.io/t/problem-with-certificates-while-building-a-ttn-gateway-with-balena-cloud/344424/4 "2021-08-20T05:54:13Z")

</div>

Glad you found a solution for the issue you are facing and reaching back to help the community. Let us know if you need any more help.

---

<div class="post-metadata">

**Author:** ![Tallestxxl](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@Tallestxxl](https://forums.balena.io/u/Tallestxxl)\
**Post date:** [August 20, 2021, 8:23am UTC](https://forums.balena.io/t/problem-with-certificates-while-building-a-ttn-gateway-with-balena-cloud/344424/6 "2021-08-20T08:23:22Z")

</div>

I will, now busy discovering all the features. Thanks again.
