Rely on beam-enroll message for exsisting key

This commit is contained in:
Tobias Kussel 2023-05-10 12:13:20 +00:00
parent 11c3103968
commit 64169acca2
1 changed files with 0 additions and 4 deletions

View File

@ -97,10 +97,6 @@ case "$ACTION" in
;; ;;
enroll) enroll)
loadVars loadVars
if [ -e $PRIVATEKEYFILENAME ]; then
log ERROR "Private key already exists at $PRIVATEKEYFILENAME. Please delete first to proceed."
exit 1
fi
docker run --rm -ti -v /etc/bridgehead/pki:/etc/bridgehead/pki samply/beam-enroll:latest --output-file $PRIVATEKEYFILENAME --proxy-id $PROXY_ID --admin-email $SUPPORT_EMAIL docker run --rm -ti -v /etc/bridgehead/pki:/etc/bridgehead/pki samply/beam-enroll:latest --output-file $PRIVATEKEYFILENAME --proxy-id $PROXY_ID --admin-email $SUPPORT_EMAIL
chmod 600 $PRIVATEKEYFILENAME chmod 600 $PRIVATEKEYFILENAME
;; ;;