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

INPUT=$1

if [ "$INPUT" == "" ]; then
    INPUT=cert-request-review.xml
fi

SRC_DIR=`cd ../.. ; pwd`
INSTANCE_NAME=ca-master
CLIENT_CERT_DIR=$HOME/.pki/${INSTANCE_NAME}_ca/alias

# Approve request as an agent
pki -d $CLIENT_CERT_DIR -w Secret123 -n caadmin cert-request-approve "$INPUT"