mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-07-10 09:53:11 +02:00
fixed history page for user
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user