diff options
Diffstat (limited to 'scripts/cert-request-approve.sh')
-rwxr-xr-x | scripts/cert-request-approve.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/cert-request-approve.sh b/scripts/cert-request-approve.sh index f360323..d0c46ae 100755 --- a/scripts/cert-request-approve.sh +++ b/scripts/cert-request-approve.sh @@ -1,14 +1,10 @@ #!/bin/sh -INPUT=$1 - -if [ "$INPUT" == "" ]; then - INPUT=cert-request-review.xml -fi +REQUEST_ID=$1 SRC_DIR=`cd ../.. ; pwd` INSTANCE_NAME=ca-master -CLIENT_CERT_DIR=$HOME/.pki/${INSTANCE_NAME}_ca/alias +CLIENT_CERT_DIR=$HOME/.pki/${INSTANCE_NAME}/ca/alias # Approve request as an agent -pki -d $CLIENT_CERT_DIR -w Secret123 -n caadmin cert-request-approve "$INPUT" +pki -d $CLIENT_CERT_DIR -w Secret123 -n caadmin cert-request-review "$REQUEST_ID" --action approve |