summaryrefslogtreecommitdiffstats
path: root/scripts/subca-external-step1.sh
blob: cc0f51d22a2c8828e91bb7b9fefb83adeb4f965d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh -x

mkdir -p tmp

cat > tmp/subca-step1.cfg << EOF
[DEFAULT]
pki_pin=Secret.123

[CA]
pki_admin_email=caadmin@example.com
pki_admin_name=caadmin
pki_admin_nickname=caadmin
pki_admin_password=Secret.123
pki_admin_uid=caadmin

pki_client_database_password=Secret.123
pki_client_database_purge=False
pki_client_pkcs12_password=Secret.123

pki_ds_base_dn=dc=ca,dc=pki,dc=example,dc=com
pki_ds_password=Secret.123
pki_ds_database=ca

pki_security_domain_name=EXAMPLE

pki_external=True
pki_external_step_two=False

pki_cert_chain_nickname=${PREFIX}external

pki_ca_signing_nickname=${PREFIX}ca_signing
pki_ca_signing_token=$TOKEN
pki_external_csr_path=tmp/ca_signing.csr

pki_ocsp_signing_nickname=${PREFIX}ca_ocsp_signing
pki_ocsp_signing_token=$TOKEN

pki_audit_signing_nickname=${PREFIX}ca_audit_signing
pki_audit_signing_token=$TOKEN

pki_sslserver_nickname=${PREFIX}sslserver/$HOSTNAME
pki_sslserver_token=$TOKEN

pki_subsystem_nickname=${PREFIX}subsystem/$HOSTNAME
pki_subsystem_token=$TOKEN
EOF

pkispawn -vvv -f tmp/subca-step1.cfg -s CA