summaryrefslogtreecommitdiffstats
path: root/scripts/cert-request-approve.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-08-14 12:13:48 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-08-14 12:13:48 -0500
commitd3740e5c85aa27bbdcb96ef58a5de20b87eb3709 (patch)
tree3dcbf5f8d42c3881a2307fbc5997dbacec85c6bb /scripts/cert-request-approve.sh
parent1579a504fe1b334bc028a53338d4f6b4d539eabd (diff)
downloadpki-dev-d3740e5c85aa27bbdcb96ef58a5de20b87eb3709.zip
pki-dev-d3740e5c85aa27bbdcb96ef58a5de20b87eb3709.tar.gz
pki-dev-d3740e5c85aa27bbdcb96ef58a5de20b87eb3709.tar.xz
Fixed cert request scripts.
Diffstat (limited to 'scripts/cert-request-approve.sh')
-rwxr-xr-xscripts/cert-request-approve.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/cert-request-approve.sh b/scripts/cert-request-approve.sh
index be9b9bf..1b59fc3 100755
--- a/scripts/cert-request-approve.sh
+++ b/scripts/cert-request-approve.sh
@@ -1,8 +1,13 @@
#!/bin/sh
+INPUT=$1
+
SRC_DIR=`cd ../.. ; pwd`
-INSTANCE_NAME=pki-master
+INSTANCE_NAME=ca-master
CLIENT_CERT_DIR=$SRC_DIR/certs/$INSTANCE_NAME
+export NSPR_LOG_MODULES=all
+export NSPR_LOG_FILE=nspr.log
+
# Approve request as an agent
-pki -v -d $CLIENT_CERT_DIR -w Secret123 -n admin cert-request-approve cert-request-review.xml
+pki -v -U https://localhost:8443/ca -d $CLIENT_CERT_DIR -w Secret123 -n caadmin cert-request-approve $INPUT