Browse Source

Merge branch 'testing' of github.com:Yunohost-Apps/vpnclient_ynh into remove-dns-resolution-ipv6-route

HgO 11 months ago
parent
commit
7b77ad23c3
1 changed files with 0 additions and 5 deletions
  1. 0 5
      conf/ynh-vpnclient

+ 0 - 5
conf/ynh-vpnclient

@@ -103,11 +103,6 @@ check_config() {
     critical "You need a CA server (you can add it through the web admin)"
     critical "You need a CA server (you can add it through the web admin)"
   fi
   fi
 
 
-  if ! openssl x509 -in /etc/openvpn/keys/ca-server.crt -noout -checkend 0 >/dev/null; then
-    ca_server_cert_expired_date=$(openssl x509 -in /etc/openvpn/keys/ca-server.crt -noout -enddate | cut -d '=' -f 2)
-    critical "The CA server expired on $ca_server_cert_expired_date"
-  fi
-
   if [[ ! -e /etc/openvpn/keys/user.crt || ! -e /etc/openvpn/keys/user.key ]]; then
   if [[ ! -e /etc/openvpn/keys/user.crt || ! -e /etc/openvpn/keys/user.key ]]; then
     if [[ -s /etc/openvpn/keys/credentials ]]; then
     if [[ -s /etc/openvpn/keys/credentials ]]; then
       login_user=$(sed -n 1p /etc/openvpn/keys/credentials)
       login_user=$(sed -n 1p /etc/openvpn/keys/credentials)