From d3740e5c85aa27bbdcb96ef58a5de20b87eb3709 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 14 Aug 2012 12:13:48 -0500 Subject: Fixed cert request scripts. --- scripts/cert-request-approve.sh | 9 +++++++-- scripts/cert-request-review.sh | 7 +++++-- scripts/cert-request.xml | 4 ++-- 3 files changed, 14 insertions(+), 6 deletions(-) (limited to 'scripts') 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 diff --git a/scripts/cert-request-review.sh b/scripts/cert-request-review.sh index 0bc736f..cf7fcbe 100755 --- a/scripts/cert-request-review.sh +++ b/scripts/cert-request-review.sh @@ -3,8 +3,11 @@ REQUEST_ID=$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 + # Review request as an agent -pki -v -d $CLIENT_CERT_DIR -w Secret123 -n admin cert-request-review $REQUEST_ID --output cert-request-review.xml +pki -v -U https://localhost:8443/ca -d $CLIENT_CERT_DIR -w Secret123 -n caadmin cert-request-review $REQUEST_ID --output cert-request-review.xml diff --git a/scripts/cert-request.xml b/scripts/cert-request.xml index b858f3a..5468147 100644 --- a/scripts/cert-request.xml +++ b/scripts/cert-request.xml @@ -1,5 +1,5 @@ - + caUserCert false @@ -28,5 +28,5 @@ SubmitterInfoInput - + -- cgit