openziti / desktop-edge-win

Provides a Ziti client for Windows
Apache License 2.0
35 stars 13 forks source link

Unable to import identity through ziti-edge-tunnel #548

Open gooseleggs opened 1 year ago

gooseleggs commented 1 year ago

Using ZEDW 2.1.2.0 Service 0.18.16, I cannot import an identity into ZEDW.

When I try and import using the client, using this command

c:\Program Files (x86)\NetFoundry, Inc\Ziti Desktop Edge\ziti-edge-tunnel.exe" enroll --cert cert.pem --key server.key --jwt autoenroll.jwt

I get the error StartServiceCtrlDispatcher failed (1063).

However, when I use the same files with the ziti cli, I get a .json file as expected.

ziti edge enroll --cert cert.pem --key server.key --jwt autoenroll.jwt --out id.json
INFO    enrolled successfully. identity file written to: id.json

I am working through trying to auto-enroll clients and having to download the ziti cli as a separate app to enroll an ID at the command line is a lot of extra work for something that should be quite simple/easy. Also, the current work around involving copying the JSON file to the correct place and restarting the client would be a better experience if the application could monitor for any changes and reload itself, or when using ziti-edge-tunnel enroll that it would perform a reload by itself.

dovholuknf commented 1 year ago

Hi @gooseleggs, thanks for the submission. We'll prioritize and take a look at this. I've marked it as a bug.

dovholuknf commented 1 year ago

A recent change to the ziti-edge-tunnel fixed the command line version of this - but I want to keep this issue open until we can do this same sort of thing with the UI. see discussion at https://openziti.discourse.group/t/using-ziti-edge-tunnel-enroll/820/14