# Using public keys for verifying JWTs

**URL:** <https://forum.canton.network/t/using-public-keys-for-verifying-jwts/4633>\
**Category:** App Development\
**Tags:** jwt, ledger-api\
**Created:** [May 27, 2022, 10:34am UTC](https://forum.canton.network/t/using-public-keys-for-verifying-jwts/4633 "2022-05-27T10:34:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darko](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/darko/32/42_2.png) [@Darko](https://forum.canton.network/u/Darko)\
**Post date:** [May 27, 2022, 10:34am UTC](https://forum.canton.network/t/using-public-keys-for-verifying-jwts/4633/1 "2022-05-27T10:34:54Z")

</div>

The participant can be configured to verify the signature on JWTs using certificates as described here: [Daml Sandbox — Daml SDK 2.2.0 documentation](https://docs.daml.com/tools/sandbox.html#run-with-authorization)

Given that certificates are basically wrappers of public keys with some additional information, can we also provide the path to the public key directly in the configuration for this verification, or does the signature checking somehow rely on the certificate wrapper?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [May 27, 2022, 10:51am UTC](https://forum.canton.network/t/using-public-keys-for-verifying-jwts/4633/2 "2022-05-27T10:51:58Z")

</div>

At the moment, we only support certificates but I don’t believe there is a strong reason for that, we just extract the key out of the certificate and ignore everything else. Is there a particular reason why you cannot generate a certificate for your key?

---

<div class="post-metadata">

**Author:** ![Darko](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/darko/32/42_2.png) [@Darko](https://forum.canton.network/u/Darko)\
**Post date:** [May 27, 2022, 11:20am UTC](https://forum.canton.network/t/using-public-keys-for-verifying-jwts/4633/3 "2022-05-27T11:20:53Z")

</div>

I don’t believe there is, as creating a self-signed certificate is pretty straightforward. I just wanted to see if that step is necessary. Thank you!
