summaryrefslogtreecommitdiffstats
path: root/scripts/root-kra-create.sh
blob: 196b413af4e8fe6a0d9665b4eeb2e5771f601455 (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
#!/bin/sh -x

mkdir -p tmp

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

[KRA]
pki_admin_cert_file=/root/.dogtag/pki-tomcat/ca_admin.cert
#pki_import_admin_cert=False
#pki_import_admin_pkcs12_file=/root/.dogtag/pki-tomcat/ca_admin_cert.p12
#pki_import_admin_pkcs12_password=Secret.123
#pki_import_admin_pkcs12_nickname=caadmin

pki_admin_email=kraadmin@example.com
pki_admin_name=kraadmin
pki_admin_nickname=kraadmin
pki_admin_password=Secret.123
pki_admin_uid=kraadmin

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

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

pki_security_domain_name=ROOT
pki_security_domain_user=caadmin
pki_security_domain_password=Secret.123

pki_storage_nickname=kra_storage
pki_transport_nickname=kra_transport
pki_audit_signing_nickname=kra_audit_signing
pki_sslserver_nickname=sslserver
pki_subsystem_nickname=subsystem
EOF

pkispawn -f tmp/root-kra.cfg -s KRA