summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-10-20 21:46:31 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-10-20 21:46:31 +0200
commited6d88989ef73b0b91d01800659b2c9059a238c4 (patch)
tree3201d61669df2ab728a5fe0129f9d6b21deb846a
parent9d7c4b0a89e950c9fbfe548c18a50a67fa8102d2 (diff)
downloadpki-dev-ed6d88989ef73b0b91d01800659b2c9059a238c4.zip
pki-dev-ed6d88989ef73b0b91d01800659b2c9059a238c4.tar.gz
pki-dev-ed6d88989ef73b0b91d01800659b2c9059a238c4.tar.xz
Removed unused scripts.
-rwxr-xr-xscripts/admin-init.sh13
-rw-r--r--scripts/cert-request-caAgentServerCert.xml21
-rw-r--r--scripts/cert-request-caUserCert.xml32
-rwxr-xr-xscripts/external-openssl-sign.sh7
-rwxr-xr-xscripts/selfsign-create.sh69
-rwxr-xr-xscripts/selfsign-request.sh29
-rwxr-xr-xscripts/selfsign-sign.sh34
7 files changed, 0 insertions, 205 deletions
diff --git a/scripts/admin-init.sh b/scripts/admin-init.sh
deleted file mode 100755
index abf448e..0000000
--- a/scripts/admin-init.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-pki -c Secret.123 client-init --force
-
-pki -c Secret.123 client-cert-import "CA Signing Certificate" --ca-server
-
-pki -c Secret.123 client-cert-import \
- --pkcs12 ~/.dogtag/pki-tomcat/ca_admin_cert.p12 \
- --pkcs12-password Secret.123
-
-#pki -c Secret.123 pkcs12-import \
-# --pkcs12-file ~/.dogtag/pki-tomcat/ca_admin_cert.p12 \
-# --pkcs12-password Secret.123
diff --git a/scripts/cert-request-caAgentServerCert.xml b/scripts/cert-request-caAgentServerCert.xml
deleted file mode 100644
index d1c6288..0000000
--- a/scripts/cert-request-caAgentServerCert.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<CertEnrollmentRequest>
- <profileId>caAgentServerCert</profileId>
- <isRenewal>false</isRenewal>
- <Input>
- <InputAttrs>
- <InputAttr name="cert_request_type">crmf</InputAttr>
- <InputAttr name="cert_request">MIIBozCCAZ8wggEFAgQBMQp8MIHHgAECpQ4wDDEKMAgGA1UEAxMBeKaBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA2NgaPHp0jiohcP4M+ufrJOZEqH8GV+liu5JLbT8nWpkfhC+8EUBqT6g+n3qroSxIcNVGNdcsBEqs1utvpItzyslAbpdyat3WwQep1dWMzo6RHrPDuIoxNA0Yka1n3qEX4U//08cLQtUv2bYglYgN/hOCNQemLV6vZWAv0n7zelkCAwEAAakQMA4GA1UdDwEB/wQEAwIF4DAzMBUGCSsGAQUFBwUBAQwIcmVnVG9rZW4wGgYJKwYBBQUHBQECDA1hdXRoZW50aWNhdG9yoYGTMA0GCSqGSIb3DQEBBQUAA4GBAJ1VOQcaSEhdHa94s8kifVbSZ2WZeYE5//qxL6wVlEst20vq4ybj13CetnbN3+WT49Zkwp7Fg+6lALKgSk47suTg3EbbQDm+8yOrC0nc/q4PTRoHl0alMmUxIhirYc1t3xoCMqJewmjX1bNP8lpVIZAYFZo4eZCpZaiSkM5BeHhz</InputAttr>
- </InputAttrs>
- <inputId>CertReqInput</inputId>
- </Input>
- <Input>
- <InputAttrs>
- <InputAttr name="requestor_name">admin</InputAttr>
- <InputAttr name="requestor_email">admin@example.com</InputAttr>
- <InputAttr name="requestor_phone">123-456-7890</InputAttr>
- </InputAttrs>
- <inputId>SubmitterInfoInput</inputId>
- </Input>
-</CertEnrollmentRequest>
-
diff --git a/scripts/cert-request-caUserCert.xml b/scripts/cert-request-caUserCert.xml
deleted file mode 100644
index 5468147..0000000
--- a/scripts/cert-request-caUserCert.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<CertEnrollmentRequest>
- <profileId>caUserCert</profileId>
- <isRenewal>false</isRenewal>
- <Input>
- <InputAttrs>
- <InputAttr name="cert_request_type">crmf</InputAttr>
- <InputAttr name="cert_request">MIIBozCCAZ8wggEFAgQBMQp8MIHHgAECpQ4wDDEKMAgGA1UEAxMBeKaBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA2NgaPHp0jiohcP4M+ufrJOZEqH8GV+liu5JLbT8nWpkfhC+8EUBqT6g+n3qroSxIcNVGNdcsBEqs1utvpItzyslAbpdyat3WwQep1dWMzo6RHrPDuIoxNA0Yka1n3qEX4U//08cLQtUv2bYglYgN/hOCNQemLV6vZWAv0n7zelkCAwEAAakQMA4GA1UdDwEB/wQEAwIF4DAzMBUGCSsGAQUFBwUBAQwIcmVnVG9rZW4wGgYJKwYBBQUHBQECDA1hdXRoZW50aWNhdG9yoYGTMA0GCSqGSIb3DQEBBQUAA4GBAJ1VOQcaSEhdHa94s8kifVbSZ2WZeYE5//qxL6wVlEst20vq4ybj13CetnbN3+WT49Zkwp7Fg+6lALKgSk47suTg3EbbQDm+8yOrC0nc/q4PTRoHl0alMmUxIhirYc1t3xoCMqJewmjX1bNP8lpVIZAYFZo4eZCpZaiSkM5BeHhz</InputAttr>
- </InputAttrs>
- <inputId>KeyGenInput</inputId>
- </Input>
- <Input>
- <InputAttrs>
- <InputAttr name="sn_uid">testuser</InputAttr>
- <InputAttr name="sn_e">testuser@example.com</InputAttr>
- <InputAttr name="sn_c">US</InputAttr>
- <InputAttr name="sn_ou">Engineering</InputAttr>
- <InputAttr name="sn_cn">Test User</InputAttr>
- <InputAttr name="sn_o">Example</InputAttr>
- </InputAttrs>
- <inputId>SubjectNameInput</inputId>
- </Input>
- <Input>
- <InputAttrs>
- <InputAttr name="requestor_name">admin</InputAttr>
- <InputAttr name="requestor_email">admin@example.com</InputAttr>
- <InputAttr name="requestor_phone">123-456-7890</InputAttr>
- </InputAttrs>
- <inputId>SubmitterInfoInput</inputId>
- </Input>
-</CertEnrollmentRequest>
-
diff --git a/scripts/external-openssl-sign.sh b/scripts/external-openssl-sign.sh
deleted file mode 100755
index a2d9313..0000000
--- a/scripts/external-openssl-sign.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-openssl req -newkey rsa:2048 -keyout external.key -nodes -x509 -out external.crt -subj "/CN=External CA/O=EXTERNAL" -days 365
-
-openssl x509 -req -in ca_signing.csr -CA external.crt -CAkey external.key -CAcreateserial -out ca_signing.crt
-
-openssl crl2pkcs7 -nocrl -certfile external.crt -out cert_chain.p7b
diff --git a/scripts/selfsign-create.sh b/scripts/selfsign-create.sh
deleted file mode 100755
index 55c65c3..0000000
--- a/scripts/selfsign-create.sh
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-
-rm -rf nssdb
-mkdir nssdb
-echo Secret123 > nssdb/password.txt
-certutil -N -d nssdb -f nssdb/password.txt
-openssl rand -out nssdb/noise.bin 2048
-
-certutil -R \
- -d nssdb \
- -f nssdb/password.txt \
- -s "CN=CA Signing Certificate,O=EXAMPLE" \
- -z nssdb/noise.bin \
- -o nssdb/ca.csr.der
-
-BtoA nssdb/ca.csr.der nssdb/ca.csr.pem
-echo "-----BEGIN NEW CERTIFICATE REQUEST-----" > nssdb/ca.csr
-cat nssdb/ca.csr.pem >> nssdb/ca.csr
-echo "-----END NEW CERTIFICATE REQUEST-----" >> nssdb/ca.csr
-rm nssdb/ca.csr.der
-rm nssdb/ca.csr.pem
-
-echo -e "0\n1\n5\n6\n9\ny\ny\n\ny\n" | \
- certutil -C -x \
- -d nssdb \
- -f nssdb/password.txt \
- -a -i nssdb/ca.csr \
- -c "External CA" \
- -m $RANDOM \
- -v 240 \
- -o nssdb/ca.crt \
- -1 -2
-
-exit
-
-certutil -S -x \
- -d nssdb \
- -n signing \
- -f nssdb/password.txt \
- -s "CN=CA Signing Certificate,O=EXAMPLE" \
- -c "CN=CA Signing Certificate,O=EXAMPLE" \
- -t "CTu,CTu,CTu" \
- -z nssdb/noise.bin \
- -m 1 -v 240 \
- -1 -2 -3 --extSKID --extAIA \
- << EOF
-0
-1
-5
-6
-9
-y
-y
-
-y
-y
-2d:7e:83:37:75:5a:fd:0e:8d:52:a3:70:16:93:36:b8:4a:d6:84:9f
-0
-
-
-2d:7e:83:37:75:5a:fd:0e:8d:52:a3:70:16:93:36:b8:4a:d6:84:9f
-
-2
-7
-http://server.example.com:8080/ca/ocsp
-0
-
-
-EOF
diff --git a/scripts/selfsign-request.sh b/scripts/selfsign-request.sh
deleted file mode 100755
index 3989e17..0000000
--- a/scripts/selfsign-request.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-certutil -R \
- -d ~/.dogtag/nssdb \
- -f password.txt \
- -s "CN=CA Signing Certificate,O=EXAMPLE" \
- -z noise.bin \
- -o ca.csr \
- -a
-
-#rm -rf nssdb
-#mkdir nssdb
-#echo Secret123 > nssdb/password.txt
-#certutil -N -d nssdb -f nssdb/password.txt
-#openssl rand -out nssdb/noise.bin 2048
-
-#certutil -R \
-# -d nssdb \
-# -f nssdb/password.txt \
-# -s "CN=CA Signing Certificate,O=EXAMPLE" \
-# -z nssdb/noise.bin \
-# -o nssdb/ca.csr.der
-
-#BtoA nssdb/ca.csr.der nssdb/ca.csr.pem
-#echo "-----BEGIN NEW CERTIFICATE REQUEST-----" > nssdb/ca.csr
-#cat nssdb/ca.csr.pem >> nssdb/ca.csr
-#echo "-----END NEW CERTIFICATE REQUEST-----" >> nssdb/ca.csr
-#rm nssdb/ca.csr.der
-#rm nssdb/ca.csr.pem
diff --git a/scripts/selfsign-sign.sh b/scripts/selfsign-sign.sh
deleted file mode 100755
index 1445175..0000000
--- a/scripts/selfsign-sign.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-certutil -C -x \
- -d ~/.dogtag/nssdb \
- -f password.txt \
- -a -i ca.csr -o ca.crt \
- -c "CN=CA Signing Certificate,O=EXAMPLE" \
- -m $RANDOM \
- -v 240 \
- --keyUsage digitalSignature,nonRepudiation,certSigning,crlSigning,critical \
- -2 \
- -3 \
- --extSKID \
- --extAIA \
-<< EOF
-y
-
-y
-y
-2d:7e:83:37:75:5a:fd:0e:8d:52:a3:70:16:93:36:b8:4a:d6:84:9f
-0
-
-
-2d:7e:83:37:75:5a:fd:0e:8d:52:a3:70:16:93:36:b8:4a:d6:84:9f
-
-2
-7
-http://server.example.com:8080/ca/ocsp
-0
-
-
-EOF
-
-certutil -A -d ~/.dogtag/nssdb -n testcert -i ca.crt -t "CTu,CTu,CTu"