admin/home.php: disable the error message about root CA
This commit is contained in:
parent
f58998a2c6
commit
05fa4128b1
@ -40,8 +40,6 @@ case $1 in
|
|||||||
|
|
||||||
ESCAPED=$(echo "${TOP_DIR}" | sed 's/[\/\.]/\\&/g')
|
ESCAPED=$(echo "${TOP_DIR}" | sed 's/[\/\.]/\\&/g')
|
||||||
|
|
||||||
echo $ESCAPED
|
|
||||||
|
|
||||||
echo -e "${GREEN}Making CA key and csr${COLOR_RST}"
|
echo -e "${GREEN}Making CA key and csr${COLOR_RST}"
|
||||||
sed -i 's/=.*#COMMONNAME/= FIC2014 CA #COMMONNAME/' $OPENSSL_CONF
|
sed -i 's/=.*#COMMONNAME/= FIC2014 CA #COMMONNAME/' $OPENSSL_CONF
|
||||||
sed -i "s/=.*#DIR/= ${ESCAPED} #DIR/" $OPENSSL_CONF
|
sed -i "s/=.*#DIR/= ${ESCAPED} #DIR/" $OPENSSL_CONF
|
||||||
|
@ -6,9 +6,7 @@ if(!defined('ONYX')) exit;
|
|||||||
$ca_file = ONYX . '../misc/fic_pki/cacert.crt';
|
$ca_file = ONYX . '../misc/fic_pki/cacert.crt';
|
||||||
|
|
||||||
//TODO check permission ?
|
//TODO check permission ?
|
||||||
if (!file_exists($ca_file))
|
if (file_exists($ca_file))
|
||||||
erreur("Can not to find the root certificate");
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
$data = openssl_x509_parse(file_get_contents(ONYX . '../misc/fic_pki/cacert.crt'));
|
$data = openssl_x509_parse(file_get_contents(ONYX . '../misc/fic_pki/cacert.crt'));
|
||||||
$template->assign("cert", $data);
|
$template->assign("cert", $data);
|
||||||
|
Loading…
Reference in New Issue
Block a user