From f7d8c4fe729ef93bfa9988e9a27c121073a79c9e Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Wed, 11 Feb 2015 16:29:54 +0100 Subject: [PATCH] adding templates + template generator from others (main, squirrelmail, roundcube) addins domaines_types in ssl.sql, adding warning in view when admin not owner of current cert --- ssl/gen-ssl-templates.sh | 20 ++++++++++++++++++++ ssl/hosting_vhost-ssl.sh | 34 ++++++++++++++++++++-------------- ssl/panel/admin/ssl_view.php | 8 ++++++++ ssl/ssl.sql | 7 +++++++ ssl/templates/url-ssl.conf | 2 +- 5 files changed, 56 insertions(+), 15 deletions(-) create mode 100755 ssl/gen-ssl-templates.sh diff --git a/ssl/gen-ssl-templates.sh b/ssl/gen-ssl-templates.sh new file mode 100755 index 00000000..8fd6553a --- /dev/null +++ b/ssl/gen-ssl-templates.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# this script regenerate the SSL-* templates from the ORIGINAL non-ssl in parent folder +# launch it if you know that some templates has been changed in parent folder. + +function convert { + src=$1 + dst=$2 + cat $src | + sed -e 's#:80#:443#' \ + -e "s## SSLEngine On\n SSLCertificateFile %%CRT%%\n SSLCertificateKeyFile %%KEY%%\n %%CHAINLINE%%\n\n#i" \ + >$dst +} +for template in panel url vhost +do + convert "../etc/alternc/templates/apache2/${template}.conf" "templates/${template}-ssl.conf" +done + +convert "../roundcube/templates/apache2/roundcube.conf" "templates/roundcube-ssl.conf" +convert "../squirrelmail/templates/apache2/squirrelmail.conf" "templates/squirrelmail-ssl.conf" diff --git a/ssl/hosting_vhost-ssl.sh b/ssl/hosting_vhost-ssl.sh index 2fd2370f..917d2102 100755 --- a/ssl/hosting_vhost-ssl.sh +++ b/ssl/hosting_vhost-ssl.sh @@ -1,17 +1,23 @@ -#!/bin/bash +#!/usr/bin/php +" /> +

+ NOT shared"); @@ -190,6 +194,10 @@ if ($cert["status"] == $ssl::STATUS_PENDING) { " /> +

+ +