diff options
author | Endi S. Dewata <edewata@redhat.com> | 2017-07-12 20:23:28 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2017-07-12 20:23:28 +0200 |
commit | c23e0e44df69e44cb21c0e564ff1a7e2a7b67fd5 (patch) | |
tree | 0250e55b5b488999efab3b2f608d05194ae05a30 /scripts/kra-export.sh | |
parent | 3190be941ce9bb8b05b1bf9d49aa95480c1ba77b (diff) | |
download | pki-dev-c23e0e44df69e44cb21c0e564ff1a7e2a7b67fd5.tar.gz pki-dev-c23e0e44df69e44cb21c0e564ff1a7e2a7b67fd5.tar.xz pki-dev-c23e0e44df69e44cb21c0e564ff1a7e2a7b67fd5.zip |
Updated KRA scripts.
Diffstat (limited to 'scripts/kra-export.sh')
-rwxr-xr-x | scripts/kra-export.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/kra-export.sh b/scripts/kra-export.sh new file mode 100755 index 0000000..9a0cf68 --- /dev/null +++ b/scripts/kra-export.sh @@ -0,0 +1,5 @@ +#!/bin/sh -x + +grep "internal=" /var/lib/pki/pki-tomcat/conf/password.conf | awk -F= '{print $2}' > internal.txt + +PKCS12Export -debug -d /var/lib/pki/pki-tomcat/alias -p internal.txt -w password.txt -o kra_backup_keys.p12 |