assign("cert_writable", $wright); //TODO handle the path ? $ca_file = ONYX . '../misc/pki/cacert.crt'; //TODO check permission ? if (file_exists($ca_file)) { $data = openssl_x509_parse(file_get_contents(ONYX . '../misc/pki/cacert.crt')); $template->assign("cert", $data); } return "admin/home";