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

REQUEST_ID=$1
OUTPUT=$2

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

SRC_DIR=`cd ../.. ; pwd`
INSTANCE_NAME=ca-master
CLIENT_CERT_DIR=/var/lib/pki/$INSTANCE_NAME/ca/certs

# Review request as an agent
pki -v -d $CLIENT_CERT_DIR -w Secret123 -n caadmin cert-request-review "$REQUEST_ID" --output "$OUTPUT"