[fix] fixing apache conf to use new cert mode + fixing bug in ssl : number of bound variables does not match number of tokens

This commit is contained in:
Benjamin Sonntag 2018-06-24 18:34:42 +02:00
parent b7235d33f0
commit 9e4021141a
2 changed files with 4 additions and 3 deletions

View File

@ -479,8 +479,8 @@ INSTR(CONCAT(sd.sub,IF(sd.sub!='','.',''),sd.domaine),'.')+1))=?
// Everything is PERFECT and has been thoroughly checked, let's insert those in the DB !
$db->query(
"INSERT INTO certificates SET uid='?', status=?, shared=0, fqdn=?, altnames=?, validstart=FROM_UNIXTIME(?), validend=FROM_UNIXTIME(?), sslkey=?, sslcrt=?, sslchain=?, provider=?;",
array($cuid,self::STATUS_OK,$fqdn,$altnames,intval($validstart),intval($validend),$key,$crt,$chain,$provider)
"INSERT INTO certificates SET uid=?, status=?, shared=0, fqdn=?, altnames=?, validstart=FROM_UNIXTIME(?), validend=FROM_UNIXTIME(?), sslkey=?, sslcrt=?, sslchain=?, provider=?;",
array($cuid, self::STATUS_OK, $fqdn, $altnames, intval($validstart), intval($validend), $key, $crt, $chain, $provider)
);
if (!($id = $db->lastid())) {
$msg->raise("ERROR","ssl", _("Can't save the Key/Crt/Chain now. Please try later."));

View File

@ -9,7 +9,8 @@ SSLProtocol all -SSLv2 -SSLv3
Include /etc/alternc/bureau.conf
SSLEngine on
SSLCertificateFile /etc/alternc/apache.pem
SSLCertificateFile /etc/ssl/certs/alternc-panel.pem
SSLCertificateKeyFile /etc/ssl/private/alternc-panel.key
SSLCaCertificatePath /etc/ssl/certs
</VirtualHost>