summaryrefslogtreecommitdiffstats
path: root/scripts/cert-request-approve.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-07-30 15:13:05 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-07-31 01:33:55 -0500
commit9ef5dd2e5186ac00c9ed75b5d552f360c5295ce7 (patch)
tree2b5f6eec0d6d969fc9f1ae5b3c1729173bb0a424 /scripts/cert-request-approve.sh
parent368bcdb23a9f8eded389681eaffe3680cc7c2b7e (diff)
downloadpki-dev-9ef5dd2e5186ac00c9ed75b5d552f360c5295ce7.zip
pki-dev-9ef5dd2e5186ac00c9ed75b5d552f360c5295ce7.tar.gz
pki-dev-9ef5dd2e5186ac00c9ed75b5d552f360c5295ce7.tar.xz
Added cert request scripts.
Diffstat (limited to 'scripts/cert-request-approve.sh')
-rwxr-xr-xscripts/cert-request-approve.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/cert-request-approve.sh b/scripts/cert-request-approve.sh
new file mode 100755
index 0000000..dd0413a
--- /dev/null
+++ b/scripts/cert-request-approve.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+INSTANCE_NAME=pki-master
+TEST_DIR=/tmp/${INSTANCE_NAME}_client
+CLIENT_CERT_DIR=$TEST_DIR/alias
+CLIENT_CERT_PASSWORD=`cat $TEST_DIR/password.conf`
+
+# 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