diff --git a/misc/CA.sh b/misc/CA.sh index 1076e1f7..578729f7 100755 --- a/misc/CA.sh +++ b/misc/CA.sh @@ -40,8 +40,6 @@ case $1 in ESCAPED=$(echo "${TOP_DIR}" | sed 's/[\/\.]/\\&/g') - echo $ESCAPED - echo -e "${GREEN}Making CA key and csr${COLOR_RST}" sed -i 's/=.*#COMMONNAME/= FIC2014 CA #COMMONNAME/' $OPENSSL_CONF sed -i "s/=.*#DIR/= ${ESCAPED} #DIR/" $OPENSSL_CONF diff --git a/onyx/include/admin/home.php b/onyx/include/admin/home.php index 0511ecf2..ceef1b4b 100644 --- a/onyx/include/admin/home.php +++ b/onyx/include/admin/home.php @@ -6,9 +6,7 @@ if(!defined('ONYX')) exit; $ca_file = ONYX . '../misc/fic_pki/cacert.crt'; //TODO check permission ? -if (!file_exists($ca_file)) - erreur("Can not to find the root certificate"); -else +if (file_exists($ca_file)) { $data = openssl_x509_parse(file_get_contents(ONYX . '../misc/fic_pki/cacert.crt')); $template->assign("cert", $data);