# AWS IoT Core Integration - How to get device shadow on a device

**URL:** <https://hub.mender.io/t/aws-iot-core-integration-how-to-get-device-shadow-on-a-device/5515>\
**Category:** General Discussions\
**Tags:** aws-iot-core-integration\
**Created:** [December 29, 2022, 1:25pm UTC](https://hub.mender.io/t/aws-iot-core-integration-how-to-get-device-shadow-on-a-device/5515 "2022-12-29T13:25:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Bjurr](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/bjurr/32/1803_2.png) [@Bjurr](https://hub.mender.io/u/Bjurr)\
**Post date:** [January 2, 2023, 4:58pm UTC](https://hub.mender.io/t/aws-iot-core-integration-how-to-get-device-shadow-on-a-device/5515/2 "2023-01-02T16:58:15Z")

</div>

Hi!

I ended up with the same issue. If you have the openssl tools available, you can extract the thingname directly from the certificate. It’s embedded in the “subject”. You can try this something like this:

```auto
openssl x509 -in cert.crt -subject -noout

```

You should get an output similar to this:

```auto
subject=C = , ST = , L = , O = , OU = , CN = e74d3774-ceff-493c-b3f9-398d4e9d7585

```

Your thingname can be extracted from the CN field.

---

_[View the full topic](https://hub.mender.io/t/aws-iot-core-integration-how-to-get-device-shadow-on-a-device/5515)._
