aboutsummaryrefslogtreecommitdiff
path: root/buildtools/debian-skeleton
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/debian-skeleton')
-rw-r--r--buildtools/debian-skeleton/rpki-ca.postinst7
1 files changed, 2 insertions, 5 deletions
diff --git a/buildtools/debian-skeleton/rpki-ca.postinst b/buildtools/debian-skeleton/rpki-ca.postinst
index 339cadce..cd3bae7e 100644
--- a/buildtools/debian-skeleton/rpki-ca.postinst
+++ b/buildtools/debian-skeleton/rpki-ca.postinst
@@ -80,16 +80,13 @@ setup_rpki_conf() {
# SQL password every time, but that's harmless so long as we're
# careful not to overwrite an existing configuration.
- mysql_passwd=`python -c 'import random, string; print "".join(random.choice(string.uppercase + string.lowercase + string.digits) for _ in xrange(16))'`
- secret_key=`python -c 'import random, string; print "".join(random.choice(string.uppercase + string.lowercase + string.digits) for _ in xrange(50))'`
-
rpki-confgen --read-xml /etc/rpki/rpki-confgen.xml \
--autoconf \
--set myrpki::handle=`hostname -f | sed 's/[.]/_/g'` \
--set myrpki::rpkid_server_host=`hostname -f` \
--set myrpki::pubd_server_host=`hostname -f` \
- --set myrpki::shared_sql_password="$mysql_passwd" \
- --set web_portal::secret-key="$secret_key" \
+ --pwgen myrpki::shared_sql_password \
+ --pwgen web_portal::secret-key \
--write-conf /etc/rpki.conf.sample
if test ! -f /etc/rpki.conf