Allow creation of wildcard SSL certificate
A certificate can be created on domain.tld or www.domain.tld but also *.domain.tld would be very helpful.
This is the patch to allow it in the UI:
--- sites/web_domain_edit.php.orig 2012-08-23 21:24:37.310955619 +0200 +++ sites/web_domain_edit.php 2012-08-23 21:24:53.390331013 +0200 @@ -246,7 +246,7 @@
$ssl_domain_select = '';
$tmp = $app->db->queryOneRecord("SELECT domain FROM web_domain WHERE domain_id = ".$this->id);
-
$ssl_domains = array($tmp["domain"],'www.'.$tmp["domain"]);
-
$ssl_domains = array($tmp["domain"],'www.'.$tmp["domain"],'*.'.$tmp["domain"]); if(is_array($ssl_domains)) { foreach( $ssl_domains as $ssl_domain) { $selected = ($ssl_domain == $this->dataRecord['ssl_domain'])?'SELECTED':'';
The certificate is created but not correctly processed by ISPConfig. In the cron.log you find:
PHP Warning: file_get_contents(/var/www/clients/client6/web58/ssl/*.domain.tld.csr): failed to open stream: No such file or directory in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php o n line 180 PHP Warning: file_get_contents(/var/www/clients/client6/web58/ssl/*.domain.tld.crt): failed to open stream: No such file or directory in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php o n line 181