[fix] misc ssl code issues
This commit is contained in:
parent
f9d2c783e5
commit
d13d093c09
|
@ -107,8 +107,8 @@ class m_ssl {
|
|||
while ($db->next_record()) {
|
||||
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"]);
|
||||
$altnames=explode("\n",$db->Record["altnames"]);
|
||||
foreach($altnames as $altname) {
|
||||
$certs[]=array("id"=>$db->Record["id"],"fqdn"=>$altname);
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ if (posix_getuid()!=0) {
|
|||
exit(-1);
|
||||
}
|
||||
|
||||
if ($date("H:m")=="10:00") {
|
||||
if (date("H:m")=="10:00") {
|
||||
$ssl->delete_old_certificates();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue