[RESOLVED] tis-openvpn package - Deployment failed

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
rflandrois
Messages: 3
Registration: September 21, 2020 - 3:00 p.m.

September 21, 2020 - 4:12 PM

Good morning,
I am unable to deploy the OpenVpn package on various machines on my network.
I get an error message telling me that the openvpn-drivers.crt certificate could not be integrated into the TrustedPublisher store.
How can this be circumvented or resolved?

The error log is shown below.

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 3876, in install_wapt
    exitstatus = setup.install()
  File "c:\windows\temp\waptenxktl\setup.py", line 25, in install
  File "C:\Program Files (x86)\wapt\common.py", line 3646, in run
    return ensure_unicode(setuphelpers.run(*arg,**args))
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 3716, in run
    raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))
CalledProcessErrorOutput: Command '"C:\\WINDOWS\\system32\\certutil.exe" -addstore TrustedPublisher "c:\\windows\\temp\\waptenxktl\\openvpn-drivers.crt"' returned non-zero exit status -2147024894.
Output:TrustedPublisher "\u2554diteurs approuv\xdas"
Impossible d\xc6ouvrir de magasin de certificats existant. Utilisez l\xc6option -f

pour forcer la cr\xdaation du magasin de certificats.
CertUtil\xe1: -addstore \u2554CHEC de la commande\xe1: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
CertUtil: Le fichier sp\xdacifi\xda est introuvable.

CalledProcessErrorOutput: Command '"C:\\WINDOWS\\system32\\certutil.exe" -addstore TrustedPublisher "c:\\windows\\temp\\waptenxktl\\openvpn-drivers.crt"' returned non-zero exit status -2147024894.
Output:TrustedPublisher "╔diteurs approuvÚs"
Impossible dÆouvrir de magasin de certificats existant. Utilisez lÆoption -f

pour forcer la crÚation du magasin de certificats.
CertUtilá: -addstore ╔CHEC de la commandeá: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
CertUtil: Le fichier spÚcifiÚ est introuvable.

- Installed WAPT version: 1.8.2.7267
- Server OS: Debian 10
- Operating system of the administration/package creation machine: Windows 2016
- Target machine operating system: Windows 10 2004
rflandrois
Messages: 3
Registration: September 21, 2020 - 3:00 p.m.

September 22, 2020 - 8:53 AM

Hello,
I found a workaround by deploying the manufacturer's certificate via GPO.
It's not ideal, but it will do for now.
If anyone has a more official solution, I'd be grateful.
User avatar
jpele
Messages: 156
Registration: March 4, 2019 - 12:01
Location: Nantes

September 22, 2020 - 2:35 PM

Hello,

This is a good workaround. Alternatively, the certutil.exe file could be included in the package, but this might cause compatibility issues with different operating systems.

I will adapt the package so that it no longer crashes if necessary.

Regards,
Jimmy
Locked