[fix] misc ssl code issues

This commit is contained in:
Benjamin Sonntag 2018-06-23 17:13:36 +02:00
parent f9d2c783e5
commit d13d093c09
2 changed files with 2 additions and 2 deletions

View File

@ -107,8 +107,8 @@ class m_ssl {
while ($db->next_record()) { while ($db->next_record()) {
if (!$db->Record["sslcrt"]) continue; // skip NOT FINALIZED certificates !! if (!$db->Record["sslcrt"]) continue; // skip NOT FINALIZED certificates !!
list($altnames)=explode("\n",$db->Record["altnames"]);
$certs[]=array("id"=>$db->Record["id"],"fqdn"=>$db->Record["fqdn"]); $certs[]=array("id"=>$db->Record["id"],"fqdn"=>$db->Record["fqdn"]);
$altnames=explode("\n",$db->Record["altnames"]);
foreach($altnames as $altname) { foreach($altnames as $altname) {
$certs[]=array("id"=>$db->Record["id"],"fqdn"=>$altname); $certs[]=array("id"=>$db->Record["id"],"fqdn"=>$altname);
} }

View File

@ -19,7 +19,7 @@ if (posix_getuid()!=0) {
exit(-1); exit(-1);
} }
if ($date("H:m")=="10:00") { if (date("H:m")=="10:00") {
$ssl->delete_old_certificates(); $ssl->delete_old_certificates();
} }