summaryrefslogtreecommitdiffstats
path: root/scripts/external-ca-sign.sh
blob: efb864fc728ac3c23a929cac7e6d92c2e48e8720 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

REQUEST_ID=`pki ca-cert-request-submit --profile caCACert --csr-file ca_signing.csr | grep "Request ID:" | awk -F ': ' '{print $2;}'`
echo Request ID: $REQUEST_ID

CERT_ID=`pki -d ~/.dogtag/pki-tomcat/ca/alias -c Secret.123 -n caadmin ca-cert-request-review --action approve $REQUEST_ID | grep "Certificate ID:" | awk -F ': ' '{print $2;}'`
echo Certificate ID: $CERT_ID

pki cert-show --output ca_signing.crt $CERT_ID

pki cert-show --output external.crt 0x1