diff options
author | Endi S. Dewata <edewata@redhat.com> | 2017-07-21 18:08:26 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2017-07-21 18:08:38 +0200 |
commit | 28c1241fbcc36cf3fdddd50d6978a1885145f713 (patch) | |
tree | a296afdbbac9864b50a451dbc6b285d66930f947 /scripts/kra_storage-ca-sign.sh | |
parent | d62ea0eca2a05a7059f071296250c63e9ea9b347 (diff) | |
download | pki-dev-28c1241fbcc36cf3fdddd50d6978a1885145f713.tar.gz pki-dev-28c1241fbcc36cf3fdddd50d6978a1885145f713.tar.xz pki-dev-28c1241fbcc36cf3fdddd50d6978a1885145f713.zip |
Added standalone KRA scripts.
Diffstat (limited to 'scripts/kra_storage-ca-sign.sh')
-rwxr-xr-x | scripts/kra_storage-ca-sign.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/kra_storage-ca-sign.sh b/scripts/kra_storage-ca-sign.sh new file mode 100755 index 0000000..861cfbf --- /dev/null +++ b/scripts/kra_storage-ca-sign.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +CMD="pki ca-cert-request-submit --profile caStorageCert --csr-file tmp/kra_storage.csr" +echo $CMD +REQUEST_ID=`$CMD | grep "Request ID:" | awk -F ': ' '{print $2;}'` +echo Request ID: $REQUEST_ID + +CMD="pki -c Secret.123 -n caadmin ca-cert-request-review --action approve $REQUEST_ID" +echo $CMD +CERT_ID=`$CMD | grep "Certificate ID:" | awk -F ': ' '{print $2;}'` +echo Certificate ID: $CERT_ID + +pki cert-show --output tmp/kra_storage.crt $CERT_ID |