summaryrefslogtreecommitdiffstats
path: root/scripts/cert-request-approve.sh
diff options
context:
space:
mode:
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