# Zymkey with Azure DPS

**URL:** https://community.zymbit.com/t/zymkey-with-azure-dps/484
**Category:** ZYMKEY4
**Created:** [April 3, 2019, 7:20pm UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484 "2019-04-03T19:20:59Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ns-midmark](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@ns-midmark](https://community.zymbit.com/u/ns-midmark)
#### Post date: [April 3, 2019, 7:20pm UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484/1 "2019-04-03T19:20:59Z")

</div>

I am trying to get Zymkey to work with Azure Device Provisioning Service and a Raspberry Pi. I can get the Pi to work with Zymkey, and I can get the Azure IoT Edge Runtime to function on the Pi, but I’m at a loss of how to combine the two. I’m following this set of instructions from Microsoft:

> **[Provision device with a virtual TPM on Linux VM - Azure IoT Edge](https://docs.microsoft.com/en-us/azure/iot-edge/how-to-auto-provision-simulated-device-linux?view=iotedge-2020-11)**
>
> Use a simulated TPM on a Linux VM to test Azure Device Provisioning Service for Azure IoT Edge

The docs reference a Registration ID and an Endorsement Key. I can’t seem to find what those would correspond to in the Zymbit world, if even if this world has a corresponding set of properties.

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [April 3, 2019, 9:49pm UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484/2 "2019-04-03T21:49:19Z")

</div>

@ns-midmark - we have a number of developers who have integrated Zymkey with the Azure stack - so we know it works. One was planning on publishing their code this week - we’ll try and put you in direct connection with them - standby.

---

<div class="post-metadata">

### Author: ![ns-midmark](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@ns-midmark](https://community.zymbit.com/u/ns-midmark)
#### Post date: [April 4, 2019, 12:11pm UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484/3 "2019-04-04T12:11:10Z")

</div>

Thank you, @Phil_S_Zymbit_1 ! That would be tremendously helpful in getting our project off the ground.

---

<div class="post-metadata">

### Author: ![ns-midmark](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@ns-midmark](https://community.zymbit.com/u/ns-midmark)
#### Post date: [April 11, 2019, 6:22pm UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484/4 "2019-04-11T18:22:34Z")

</div>

Hey @Phil_S_Zymbit_1, any movement on this? Just wondering if I need to start foraging or if a guiding light is on its way.

Thanks again,  
Nathan

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [April 11, 2019, 9:03pm UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484/5 "2019-04-11T21:03:08Z")

</div>

For sure there is a release on its way from one of our partner developers. Today they told us that it’s going through an internal review and they hope to post by 4/18.

---

<div class="post-metadata">

### Author: ![hansvandenakker](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@hansvandenakker](https://community.zymbit.com/u/hansvandenakker)
#### Post date: [April 12, 2019, 9:55am UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484/6 "2019-04-12T09:55:13Z")

</div>

I would like to be included in this thread if possible?

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [April 12, 2019, 4:17pm UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484/7 "2019-04-12T16:17:03Z")

</div>

Sure… just sign up for notifications in this channel. We’ll post when the Azure code is released

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [April 19, 2019, 3:54pm UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484/9 "2019-04-19T15:54:49Z")

</div>

Azure IoT SDK Support for Zymbit Security Module.

@ns-midmark @hansvandenakker

This was posted yesterday by [Jelani Brandon at Microsoft.](https://github.com/jebrando) We understand from Jelani that there are still a few clean up items that he expects to resolve early next week. Check it out and share your feedback !

[https://github.com/Azure/azure-iot-sdk-c/blob/secure\_hsm\_tutorial/provisioning\_client/devdoc/secure\_custom\_hsm.md](https://github.com/Azure/azure-iot-sdk-c/blob/secure_hsm_tutorial/provisioning_client/devdoc/secure_custom_hsm.md)

---

<div class="post-metadata">

### Author: ![Sablier](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@Sablier](https://community.zymbit.com/u/Sablier)
#### Post date: [April 24, 2019, 9:08am UTC](https://community.zymbit.com/t/zymkey-with-azure-dps/484/10 "2019-04-24T09:08:56Z")

</div>

Hello,

Thanks a lot for this documentation 🙂

I tried to run this tutorial, but i have an issue, and i’m not sure it is a problem of azure sdk, openssl or the zymkey openssl engine.

When i launch the samples, the code just block at the line " `ENGINE_init(e)` "  
it only print " `Stack frame dump (0):` ", then it never return (it use 100% of cpu).

I opened an issue on azure github : [https://github.com/Azure/azure-c-shared-utility/issues/303](https://github.com/Azure/azure-c-shared-utility/issues/303)

If you have any idea, it would be nice 🙂

Thanks again,  
J

Edit:  
the 2 working threads are:

```auto
  Id Target Id Frame 
* 1 Thread 0x76fef5c0 (LWP 18862) "prov_dev_client" 0x76c37120 in poll () at ../sysdeps/unix/syscall-template.S:84
  2 Thread 0x7680e430 (LWP 18869) "prov_dev_client" 0x769a4cdc in ?? () from /usr/lib/libzk_app_utils.so

```

perhaps something in `libzk_app_utils.so` never return ?  
openssl commands with `-engine zymkey_ssl` work correctly, by the way…

Edit2:  
a more complete stack trace:

```auto
(gdb) bt
#0 0x76c37120 in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x769a5210 in waitOnRxThreadEvent () from /usr/lib/libzk_app_utils.so
#2 0x769a5464 in waitForCmdRspPassStatus () from /usr/lib/libzk_app_utils.so
#3 0x769a5714 in zkOpen () from /usr/lib/libzk_app_utils.so
#4 0x769fe1f4 in ?? () from /usr/lib/arm-linux-gnueabihf/engines-1.1/zymkey_ssl.so
#5 0x769fe1f4 in ?? () from /usr/lib/arm-linux-gnueabihf/engines-1.1/zymkey_ssl.so
#6 0x769fe1f4 in ?? () from /usr/lib/arm-linux-gnueabihf/engines-1.1/zymkey_ssl.so
#7 0x769fe1f4 in ?? () from /usr/lib/arm-linux-gnueabihf/engines-1.1/zymkey_ssl.so
#8 0x769fe1f4 in ?? () from /usr/lib/arm-linux-gnueabihf/engines-1.1/zymkey_ssl.so
#9 0x769fe1f4 in ?? () from /usr/lib/arm-linux-gnueabihf/engines-1.1/zymkey_ssl.so
[...]

```
