summaryrefslogtreecommitdiffstats
path: root/scripts/cert-request-approve.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2013-02-11 02:05:12 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2013-02-11 02:05:12 -0500
commitba50a4146aa679cf8508c5163c2eea0cac3cdeb9 (patch)
tree5ab8f78cb2a00f178e7179480ac1300443d2cedb /scripts/cert-request-approve.sh
parent1d47c8e59eca3b9dabd4cb87f6cec907a1a3f7eb (diff)
downloadpki-dev-ba50a4146aa679cf8508c5163c2eea0cac3cdeb9.zip
pki-dev-ba50a4146aa679cf8508c5163c2eea0cac3cdeb9.tar.gz
pki-dev-ba50a4146aa679cf8508c5163c2eea0cac3cdeb9.tar.xz
Updated deployment scripts.
Diffstat (limited to 'scripts/cert-request-approve.sh')
-rwxr-xr-xscripts/cert-request-approve.sh10
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