summaryrefslogtreecommitdiffstats
path: root/scripts/tks-create.sh
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-08-01 05:01:14 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-08-01 05:01:14 +0200
commitc6e1e95d5fae24a657912138bbafdb7b1cd294fc (patch)
treef51eaf7a207b8bb96afdbd64a3399e6bff228a8a /scripts/tks-create.sh
parentd9a2c41533a95044b021d94b53081a07424b90b4 (diff)
downloadpki-dev-c6e1e95d5fae24a657912138bbafdb7b1cd294fc.zip
pki-dev-c6e1e95d5fae24a657912138bbafdb7b1cd294fc.tar.gz
pki-dev-c6e1e95d5fae24a657912138bbafdb7b1cd294fc.tar.xz
Updated TKS scripts.
Diffstat (limited to 'scripts/tks-create.sh')
-rwxr-xr-xscripts/tks-create.sh42
1 files changed, 41 insertions, 1 deletions
diff --git a/scripts/tks-create.sh b/scripts/tks-create.sh
index 7cdef34..b01570d 100755
--- a/scripts/tks-create.sh
+++ b/scripts/tks-create.sh
@@ -1,3 +1,43 @@
#!/bin/sh -x
-pkispawn -v -f tks.cfg -s TKS -v
+mkdir -p tmp
+
+cat > tmp/tks.cfg << EOF
+[DEFAULT]
+pki_pin=Secret.123
+
+[TKS]
+pki_admin_cert_file=/root/.dogtag/pki-tomcat/ca_admin.cert
+pki_admin_email=tksadmin@example.com
+pki_admin_name=tksadmin
+pki_admin_nickname=tksadmin
+pki_admin_password=Secret.123
+pki_admin_uid=tksadmin
+
+pki_backup_password=Secret.123
+
+pki_client_database_password=Secret.123
+pki_client_database_purge=False
+pki_client_pkcs12_password=Secret.123
+
+pki_ds_base_dn=dc=tks,dc=pki,dc=example,dc=com
+pki_ds_password=Secret.123
+pki_ds_database=tks
+
+pki_clone_pkcs12_password=Secret.123
+
+pki_security_domain_name=EXAMPLE
+pki_security_domain_user=caadmin
+pki_security_domain_password=Secret.123
+
+pki_token_password=Secret.123
+
+#pki_profiles_in_ldap=False
+#pki_share_db=False
+
+pki_audit_signing_nickname=tks_audit_signing
+pki_ssl_server_nickname=sslserver
+pki_subsystem_nickname=subsystem
+EOF
+
+pkispawn -v -f tmp/tks.cfg -s TKS -v