# Ziti cli user question

**URL:** <https://openziti.discourse.group/t/ziti-cli-user-question/713>\
**Category:** General Questions\
**Created:** [August 24, 2022, 10:08pm UTC](https://openziti.discourse.group/t/ziti-cli-user-question/713 "2022-08-24T22:08:35Z")\
**Posts on this page:** 2\
**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 24, 2022, 10:08pm UTC](https://openziti.discourse.group/t/ziti-cli-user-question/713/1 "2022-08-24T22:08:35Z")

</div>

Every time I need to use ziti cli, I would have to do “ziti edge login …” with username and password. And after successful login i see a file - ${ZITI\_HOME}/ziti-cli.json with following content -

```auto
{
    "edgeIdentities": {
        "default": {
            "url": "https://${ZITI_CTRL_ADVERTISED_ADDRESS}/edge/management/v1",
            "username": "xxxx",
            "token": "xxxx-xxx-xxx-xxxx",
            "loginTime": "2022-08-22T19:52:07-07:00",
            "caCert": "${INTERNAL_CA}",
            "readOnly": false
        }
    },
    "fabricIdentities": {},
"default": "default"
}

```

I have registered my internal CA with the controller and successfully verified it. I am able to enroll identities with x509 certificate provided by my CA.

My question is say I have a x509 certificate for myself from my CA ( with CN=myname ), how can I use that to enroll myself as an identity ( assuming it will be of type user ) with openziti?  
And how can I use that identity to be able to run ziti cli commands without having to do ziti edge login periodically? i.e. I would like to not use the default admin user but my x509 identity as the admin.

cc: @TheLumberjack

TIA

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [August 25, 2022, 12:11am UTC](https://openziti.discourse.group/t/ziti-cli-user-question/713/2 "2022-08-25T00:11:49Z")

</div>

Dunno why I didn’t go look for issues - but tonight it struck me that I should. I found this issue tracking the request [Allow Edge Rest API Cert Login · Issue #127 · openziti/ziti · GitHub](https://github.com/openziti/ziti/issues/127)
