@require_once("config.inc");@require_once("certs.inc");@require_once('util.inc');$certs = &config_read_array('cert');const CAREFID='..........';const CERT_DAYS=7;$email='......';$login='....';cert_create($user_cert, CAREFID, 2048, CERT_DAYS, Array('emailAddress' => $email, 'ST'=>'State', 'O'=>'Org','L'=>'Location','CN'=>$login,'C'=>'CN'), 'SHA256');$user_cert['descr'] = 'certificate-'.$login;$user_cert['refid'] = uniqid();$certs[]=$user_cert;var_dump(write_config('Generate webmail cert for '.$login));
2023-12-17T18:57:16 Notice configctl event @ 1702828636.28 exec: system event config_changed 2023-12-17T18:57:16 Notice configctl event @ 1702828636.28 msg: Dec 17 18:57:16 hostname.localdomain config[30917]: config-event: new_config /conf/backup/config-1702828636.2734.xml