summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-07-18 10:38:14 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-07-18 10:39:50 +0100
commit4b173df3d98e90e79abe471970777bcaa7ea0457 (patch)
treea85f282585c4f59a44f16e1d188a7a6d3225a632 /pykolab
parentb4b703405e4c8c66424c0a6b3fdbabf7956d1d27 (diff)
downloadpykolab-4b173df3d98e90e79abe471970777bcaa7ea0457.tar.gz
Generate the localhost.pem dummy certificate if it doesn't exist (#886)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_mta.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mta.py b/pykolab/setup/setup_mta.py
index ebcca2f..e649342 100644
--- a/pykolab/setup/setup_mta.py
+++ b/pykolab/setup/setup_mta.py
@@ -249,6 +249,9 @@ result_attribute = mail
log.error(_("Could not write out Postfix configuration file /etc/postfix/master.cf"))
return
+ if os.path.isfile('/etc/pki/tls/certs/make-dummy-cert') and not os.path.isfile('/etc/pki/tls/private/localhost.pem'):
+ subprocess.call(['/etc/pki/tls/certs/make-dummy-cert', '/etc/pki/tls/private/localhost.pem'])
+
amavisd_settings = {
'ldap_server': 'localhost',
'ldap_bind_dn': conf.get('ldap', 'service_bind_dn'),