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

#pki cert-show 0x1 --output tmp/external.crt
#openssl crl2pkcs7 -nocrl -certfile tmp/external.crt -out tmp/cert_chain.p7b
#pki -d /etc/pki/pki-tomcat/alias -c Secret.123 client-cert-show ca_signing --cert tmp/external.crt
pki-server cert-export ca_signing --cert-file tmp/external.crt

./ca_signing-ca-sign.sh

openssl crl2pkcs7 -nocrl \
 -certfile tmp/external.crt \
 -certfile tmp/ca_signing.crt \
 -out tmp/ca_signing.p7b