Browse Source

Обновить 'docker-entrypoint.sh'

Vladimir Tomishinets 7 years ago
parent
commit
1af51f48eb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docker-entrypoint.sh

+ 2 - 0
docker-entrypoint.sh

@@ -4,12 +4,14 @@ export RNG=PROGRAM
 if [ ${mode} == "server" ]
 then
     mv /etc/openvpn/server.conf /etc/openvpn/ovpn.conf
+    echo -e "LegacySigningMDs md2 md5\nMinimumDHBits 512\n" >> /etc/pki/tls/legacy-settings
 fi
 
 if [ ${mode} == "client" ]
 then
     sed -i "s/remote server/remote ${server}/" /etc/openvpn/client.conf
     mv /etc/openvpn/client.conf /etc/openvpn/ovpn.conf
+    echo -e "LegacySigningMDs md2 md5\nMinimumDHBits 512\n" >> /etc/pki/tls/legacy-settings
 fi
 exec "$@"