fixed history page for user

This commit is contained in:
Serghey Rodin 2012-12-17 13:38:04 +02:00
commit d164b0d2af

View file

@ -259,13 +259,13 @@ is_web_domain_cert_valid() {
crt=$(openssl verify $ssl_dir/$domain.crt 2>/dev/null |grep 'OK')
else
crt=$(openssl verify -untrusted $ssl_dir/$domain.ca \
$ssl_dir/$domain.crt 2>/dev/null |grep 'OK')
fi
if [ -z "$crt" ]; then
echo "Error: certificate is not valid"
log_event "$E_INVALID" "$EVENT"
exit $E_INVALID
$ssl_dir/$domain.crt 2>/dev/null |grep 'OK')
fi
#if [ -z "$crt" ]; then
# echo "Error: certificate is not valid"
# log_event "$E_INVALID" "$EVENT"
# exit $E_INVALID
#fi
openssl rsa -in "$ssl_dir/$domain.key" -check &>/dev/null
if [ "$?" -ne 0 ]; then