summaryrefslogtreecommitdiffstats
path: root/scripts/cert-request-approve.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-08-07 11:26:54 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-08-07 11:26:54 -0500
commitb781ff44d12fe7941db92323f70ad5999e680793 (patch)
treef6ae09cb9e475fc69fb576474b124c7e7b36920d /scripts/cert-request-approve.sh
parent628d95cead4323fc4f6a0fa2eeda286e0304ae78 (diff)
downloadpki-dev-b781ff44d12fe7941db92323f70ad5999e680793.zip
pki-dev-b781ff44d12fe7941db92323f70ad5999e680793.tar.gz
pki-dev-b781ff44d12fe7941db92323f70ad5999e680793.tar.xz
Added CA clone scripts.
Diffstat (limited to 'scripts/cert-request-approve.sh')
-rwxr-xr-xscripts/cert-request-approve.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/cert-request-approve.sh b/scripts/cert-request-approve.sh
index dd0413a..be9b9bf 100755
--- a/scripts/cert-request-approve.sh
+++ b/scripts/cert-request-approve.sh
@@ -1,9 +1,8 @@
#!/bin/sh
+SRC_DIR=`cd ../.. ; pwd`
INSTANCE_NAME=pki-master
-TEST_DIR=/tmp/${INSTANCE_NAME}_client
-CLIENT_CERT_DIR=$TEST_DIR/alias
-CLIENT_CERT_PASSWORD=`cat $TEST_DIR/password.conf`
+CLIENT_CERT_DIR=$SRC_DIR/certs/$INSTANCE_NAME
# Approve request as an agent
-pki -U https://localhost:8015/ca -d $CLIENT_CERT_DIR -w $CLIENT_CERT_PASSWORD -n admin cert-request-approve cert-request-review.xml
+pki -v -d $CLIENT_CERT_DIR -w Secret123 -n admin cert-request-approve cert-request-review.xml