tis-openvpn 2.4.6-15

  • package : tis-openvpn
  • version : 2.4.6-15
  • architecture : all
  • locale : all
  • description : Client Openvpn et application GUI openvpn-mi-gui pour permettre la modification de routes sans droits privilégiés
  • maintainer : Kevin Guerineau, Hubert TOUVET
  • date : 2018-08-28 17:10:37
  • min_wapt_version : 1.3.5
  • min_os_version : 5.1
  • max_os_version :
  • impacted_process :

setup.py

# -*- coding: utf-8 -*-
import setuphelpers
import shutil
from setuphelpers import *
import glob,platform,os
import winshell

uninstallkey = []

def install():
    openvpn_dir = os.path.join(programfiles,'OpenVPN')
    openvpn_config = os.path.join(openvpn_dir,'config')
    openvpn_bin = os.path.join(openvpn_dir,'bin')

    print('Register OpenVPN as a trusted publisher')
    try:
        run(r'certutil.exe -addstore trustedpublisher openvpn-editor-cert.p7b')
    except:
        run(r'certutil\certutil.exe -addstore trustedpublisher openvpn-editor-cert.p7b')

    print('installing openvpn client')
    if windows_version() < Version('6.0.0'):
        if iswin64():
            install_exe_if_needed('openvpn-install-2.3.10-I002-x86_64.exe','/S',key='OpenVPN',min_version='2.3.10-I002',killbefore=['openvpn','openvpn-gui'])
        else:
            install_exe_if_needed('openvpn-install-2.3.10-I002-i686.exe','/S',key='OpenVPN',min_version='2.3.10-I002',killbefore=['openvpn','openvpn-gui'])
    else:
       install_exe_if_needed('openvpn-install-2.4.6-I602.exe','/S',key='OpenVPN',min_version='2.4.6-I602',killbefore=['openvpn','openvpn-gui'])

    # check firewall rules :
    """
    try:
        try:
            openvpn_fw = run('netsh advfirewall firewall show rule name="Openvpn daemon" verbose')
        except:
            run(r'netsh advfirewall firewall add rule name="OpenVPN daemon" dir=out  action=allow  description="OpenVPN Daemon" profile=any program="c:\Program Files\OpenVPN\bin\openvpn.exe"')
    except Exception as e:
        print('Erreur firewall: %s'%e)
    """
    if not installed_softwares(uninstallkey='TAP-Windows'):
        uninstallkey.append('TAP-Windows')


    # this need to be customized...
    #filecopyto('client.ovpn',openvpn_config)
    #filecopyto('client.p12',openvpn_config)
    print('A reboot of the computer may be needed to release the TAP adapter')

    

Changelog

No changelog
    

manifest.sha256

openvpn-install-2.3.10-I002-x86_64.exe c5bf47d761a7e8cdb1a20a0ecd565eaa2e2e4d3d0f72393f236f43c4ca051777
openvpn-editor-cert.p7b 9738ac185e39b1c8206acfa4569c8c95c96a140cd96602651727101df11285fb
tap-windows.exe 02e1013ee8d548edc3fbafab672977ea8c677cf1f0b57018652fcf2a2411cbfb
certutil/readme.txt e0e46068dbc7156522bfc4526c81303ba1f8eb8b357c3a013da6792139125718
client.ovpn ec4ff36d2e523106545408fabd29aca8773029c23b65f378dc6d62995ec66e32
client.p12 c335ce7441ece24bc60dd6b3c758b9fdead7830ce2a488b75fed45a50d7cac9c
certutil/certcli.dll df08b70b34b9adcd0dba83cdac669c1625cdfa12a86ab052bad77078d3224c7c
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
certutil/certutil.exe 75ddab1826f220eb36a9eea9cf8533c94c19bac89d961380f3a418f6eedb2b4e
certutil/certadm.dll bbba87bf62e8bdc11602f2a95712e5fe3fb1edbbcdeb28cbdcf191aeab286b04
setup.py 925affb7d43831fd1e6d10e9af49df2aeed1a9a6c6645ca87344d8e7a81cc1d7
openvpn-install-2.3.10-I002-i686.exe 207eb78732c277d1c05197d34653e92a70b9e847457a5ae2a32d9b0fe566c623
openvpn-install-2.4.6-I602.exe 7397af1128c35a0e44bb104caa3cdad77b5be7c5106c8933a810771f99256800
WAPT/control 8603c8af22c1eb14bf0c876a9c1ad5caabb9f942a52f7af438e0964dcb61084f
WAPT/wapt.psproj df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7