From 4c792c1b279b1f0a99d2cc39d174ee7c3e460f3f Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Wed, 9 Jan 2019 20:39:57 -0500 Subject: [PATCH] mailman: support ssl on mailman domains SSL only worked in mailmanVhost for lists.hcoop.net because the default vhost happens to use the *.hcoop.net certificate. Actually specify certificate so this works generally instead. Continuing the tradition of duplication between vhost and mailmanVhost. --- lib/mailman.dtl | 1 - src/plugins/mailman.sml | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/mailman.dtl b/lib/mailman.dtl index 8de45ee..dcfa585 100644 --- a/lib/mailman.dtl +++ b/lib/mailman.dtl @@ -40,7 +40,6 @@ val mailman = \ host : (host) -> begin mailmanWebHost mwh; mailmanVhost host where MailmanPlaces = [mailman_place_default mailman_node]; - SSL = no_ssl end end end; diff --git a/src/plugins/mailman.sml b/src/plugins/mailman.sml index 4a2bfeb..bab7222 100644 --- a/src/plugins/mailman.sml +++ b/src/plugins/mailman.sml @@ -126,6 +126,12 @@ val () = Env.actionV_one "mailmanVhost" print " ServerAdmin "; print sadmin; print "\n"; + case ssl of + SOME cert => + (print "\n\tSSLEngine on\n\tSSLCertificateFile "; + print cert; + print "\n") + | NONE => (); (* print " SuexecUserGroup list list\n"; print "\n"; -- 2.20.1