# External jwt signer

**URL:** <https://openziti.discourse.group/t/external-jwt-signer/722>\
**Category:** General Questions\
**Created:** [August 30, 2022, 5:21pm UTC](https://openziti.discourse.group/t/external-jwt-signer/722 "2022-08-30T17:21:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![av-dev](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@av-dev](https://openziti.discourse.group/u/av-dev)\
**Post date:** [August 30, 2022, 5:21pm UTC](https://openziti.discourse.group/t/external-jwt-signer/722/1 "2022-08-30T17:21:37Z")

</div>

Can I use external jwt signer for edge router enrollment?

From my understanding its a 3 steps process - login, create and enroll.

ziti edge login [mycontroller.com](http://mycontroller.com) -u admin -p $PWD  
ziti edge create edge-router myrouter -o enrollment\_token.jwt  
ziti-router enroll config.yaml --jwt enrollment\_token.jwt

I would like to automate this process without having to use the admin credentials if possible. Please share any recommendations / best practices. TIA.

P.S - Love the documentation update. Its extremely helpful. 👍

---

<div class="post-metadata">

**Author:** ![andrew.martinez](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/andrew.martinez/32/540_2.png) [@andrew.martinez](https://openziti.discourse.group/u/andrew.martinez)\
**Post date:** [August 31, 2022, 2:32pm UTC](https://openziti.discourse.group/t/external-jwt-signer/722/2 "2022-08-31T14:32:39Z")

</div>

> [@av-dev](#):
>
> Can I use external jwt signer for edge router enrollment?

It can not do that, but it is an interesting idea. I'd be interested to know the use case. If you can mint a JWT from one system and use it what would be the difference in getting that JWT from Ziti?

The original implementation was aimed at endpoint users on desktop clients like Ziti Desktop Edge, upcoming browser client-less work, and the like. It was meant to allow those users to use external IdPs (like Google).

---

<div class="post-metadata">

**Author:** ![av-dev](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@av-dev](https://openziti.discourse.group/u/av-dev)\
**Post date:** [August 31, 2022, 2:39pm UTC](https://openziti.discourse.group/t/external-jwt-signer/722/3 "2022-08-31T14:39:02Z")

</div>

This is sort of continuation of my question from [the other post](https://openziti.discourse.group/t/ziti-cli-user-question/713)

I get identity from internal CA, I can use that identity to request a oidc access token from my CA. If I could use that for enrolling router ( where controller verifies the token with my CA as oidc provider ), I was thinking I could avoid doing “ziti edge login …” for router enrollment.

---

<div class="post-metadata">

**Author:** ![andrew.martinez](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/andrew.martinez/32/540_2.png) [@andrew.martinez](https://openziti.discourse.group/u/andrew.martinez)\
**Post date:** [August 31, 2022, 3:16pm UTC](https://openziti.discourse.group/t/external-jwt-signer/722/4 "2022-08-31T15:16:14Z")

</div>

> [@av-dev](#):
>
> I was thinking I could avoid doing “ziti edge login …” for router enrollment.

Removing the `ziti edge login` and exchanging it for signing a JWT means that either a private key is present on the system that can sign JWTs or there is access to some other system that can do the signing. The latter seems fine, but the former (signing key on the router) makes my security sensibilities tingle.

---

<div class="post-metadata">

**Author:** ![av-dev](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@av-dev](https://openziti.discourse.group/u/av-dev)\
**Post date:** [August 31, 2022, 3:19pm UTC](https://openziti.discourse.group/t/external-jwt-signer/722/5 "2022-08-31T15:19:10Z")

</div>

oh no, you are absolutely right. JWT signing will happen on my internal CA. 🙂

And the basis for requesting the jwt will be the identity assigned to that workload by the internal CA.
