Invalid signing key

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
Brice
Messages: 1
Registration: January 20, 2016 - 09:48

January 20, 2016 - 10:08

Good morning,
During package installation, I encountered an invalid key issue. Here are the logs:
•4 - 2016-01-20T10:04:57.320000 - Installation of waptpkg-adobereader (=2015.8.20082-2) (task #4): Exception: Package file C:\wapt\cache\waptpkg-adobereader_2015.8.20082-2_x86.wapt signature is invalid
Traceback (most recent call last):
File "C:\wapt\waptservice\waptservice.py", line 2031, in run
self.running_task.run()
File "C:\wapt\waptservice\waptservice.py", line 1291, in pwrapper
return func(*arg, **kwargs)
File "C:\wapt\waptservice\waptservice.py", line 1351, in run
self._run()
File "C:\wapt\waptservice\waptservice.py", line 1753, in _run
self.result = self.wapt.install(self.packagename,force = self.force)
File "C:\wapt\common.py", line 3720, in install
raise Exception(u'Package file %s signature is invalid' % ensure_unicode(fname))
Exception: Package file C:\wapt\cache\waptpkg-adobereader_2015.8.20082-2_x86.wapt signature is invalid
I have the same issue with a package that I signed for using the command
wapt-get sign-package

However, I have the .crt key in the wapt ssl folder on the client
The packages I'm trying to deploy were made by TIS, though. :|

Sincerely
Brice
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

January 20, 2016 - 4:02 PM

This means that either the package is not signed, or the certificate (public .crt) located on the client machine in c:\wapt\ssl does not match the private key that signed the package (located on the package management or development machine, by default in c:\private\....pem).

During the initial installation, a private/public key pair is created using the console.
The public key will be distributed to all machines by the waptagent.exe installer.

The private key should not be distributed and will be used when a package is duplicated from an external repository (from the Wapt console, for example) or when a locally created package is signed with wapt-get build-upload or wapt-get sign-package.
Tranquil IT
Locked