mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 15:51:21 +00:00
11 lines
444 B
Bash
Executable File
11 lines
444 B
Bash
Executable File
suffix=$(date +"%b-%d-%H%M")
|
|
idname="User${suffix}"
|
|
|
|
ziti edge login "${ZITI_EDGE_CONTROLLER_API}" -u "${ZITI_USER}" -p "${ZITI_PWD}" -c "${ZITI_PKI}/${ZITI_EDGE_CONTROLLER_ROOTCA_NAME}/certs/${ZITI_EDGE_CONTROLLER_INTERMEDIATE_NAME}.cert"
|
|
|
|
ziti edge delete identity "${idname}"
|
|
ziti edge create identity device "${idname}" -o "${ZITI_HOME}/test_identity".jwt
|
|
|
|
cp "${ZITI_HOME}/test_identity".jwt /mnt/v/temp/ziti-windows-tunneler/_new_id.jwt
|
|
|