summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2015-11-16 15:45:08 +0100
committerEndi S. Dewata <edewata@redhat.com>2015-11-16 15:45:08 +0100
commit318852575ceb8c42e8844b673c2422a38b6f60f4 (patch)
tree8de6fc4c4db38f28cd6a8d80e8a1a7c1afadf039 /scripts
parent1861d6a1e37e60362cd0469dc29a7d601109a831 (diff)
downloadpki-dev-318852575ceb8c42e8844b673c2422a38b6f60f4.tar.gz
pki-dev-318852575ceb8c42e8844b673c2422a38b6f60f4.tar.xz
pki-dev-318852575ceb8c42e8844b673c2422a38b6f60f4.zip
Added scripts for external CA.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/external-step1.cfg7
-rwxr-xr-xscripts/external-step1.sh9
-rw-r--r--scripts/external-step2.cfg8
-rwxr-xr-xscripts/external-step2.sh5
4 files changed, 19 insertions, 10 deletions
diff --git a/scripts/external-step1.cfg b/scripts/external-step1.cfg
index c381ae5..967289c 100644
--- a/scripts/external-step1.cfg
+++ b/scripts/external-step1.cfg
@@ -12,12 +12,9 @@ pki_client_pkcs12_password=Secret123
pki_ds_base_dn=dc=ca,dc=example,dc=com
pki_ds_database=ca
pki_ds_password=Secret123
-pki_security_domain_name=EXAMPLE
+pki_security_domain_name=EXTERNAL
pki_token_password=Secret123
pki_external=True
-pki_external_csr_path=/tmp/ca.csr
-pki_external_ca_cert_chain_path=/tmp/external.crt
-pki_external_ca_cert_path=/tmp/ca.crt
pki_external_step_two=False
-#pki_ca_signing_subject_dn=cn=CA Signing,ou=External,o=example.com
+pki_external_csr_path=/tmp/ca_signing.csr
diff --git a/scripts/external-step1.sh b/scripts/external-step1.sh
new file mode 100755
index 0000000..5f7676c
--- /dev/null
+++ b/scripts/external-step1.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -x
+
+mkdir -p build
+
+rm -f /tmp/ca_signing.csr
+rm -f /tmp/ca_signing.crt
+rm -f /tmp/external.crt
+
+pkispawn -v -f external-step1.cfg -s CA 2>&1 | tee build/external-step1.log
diff --git a/scripts/external-step2.cfg b/scripts/external-step2.cfg
index 6b9d395..2092c48 100644
--- a/scripts/external-step2.cfg
+++ b/scripts/external-step2.cfg
@@ -12,12 +12,10 @@ pki_client_pkcs12_password=Secret123
pki_ds_base_dn=dc=ca,dc=example,dc=com
pki_ds_database=ca
pki_ds_password=Secret123
-pki_security_domain_name=EXAMPLE
+pki_security_domain_name=EXTERNAL
pki_token_password=Secret123
pki_external=True
-pki_external_csr_path=/tmp/ca.csr
-pki_external_ca_cert_chain_path=/tmp/external.crt
-pki_external_ca_cert_path=/tmp/ca.crt
pki_external_step_two=True
-#pki_ca_signing_subject_dn=cn=CA Signing,ou=External,o=example.com
+pki_external_ca_cert_chain_path=/tmp/external.crt
+pki_external_ca_cert_path=/tmp/ca_signing.crt
diff --git a/scripts/external-step2.sh b/scripts/external-step2.sh
new file mode 100755
index 0000000..78f9c9d
--- /dev/null
+++ b/scripts/external-step2.sh
@@ -0,0 +1,5 @@
+#!/bin/sh -x
+
+mkdir -p build
+
+pkispawn -v -f external-step2.cfg -s CA 2>&1 | tee build/external-step2.log