blob: 4dd9f1a4bdfaad02d291bf356617a813bdb92614 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh -x
mkdir -p tmp
#echo $HOSTNAME > tmp/master.txt
grep "internal=" /var/lib/pki/pki-tomcat/conf/password.conf | awk -F= '{print $2}' > tmp/internal.txt
PKCS12Export -debug -d /var/lib/pki/pki-tomcat/alias -p tmp/internal.txt -w password.txt -o tmp/ca_backup_keys.p12
pki pkcs12-cert-find --pkcs12-file tmp/ca_backup_keys.p12 --pkcs12-password-file password.txt
pki-server kra-clone-prepare --pkcs12-file tmp/kra-certs.p12 --pkcs12-password-file password.txt
pki pkcs12-cert-find --pkcs12-file tmp/kra-certs.p12 --pkcs12-password-file password.txt
#cp ~/.dogtag/pki-tomcat/ca_admin.cert tmp
#cp ~/.dogtag/pki-tomcat/ca_admin_cert.p12 tmp
|