summaryrefslogtreecommitdiffstats
path: root/scripts/cert-request-approve.sh
blob: 1b59fc3c3289b07e4e7a55589b4877f909e1649f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

INPUT=$1

SRC_DIR=`cd ../.. ; pwd`
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 -U https://localhost:8443/ca -d $CLIENT_CERT_DIR -w Secret123 -n caadmin cert-request-approve $INPUT