Hello!
I have a quick question that I think is interesting.
Is it possible to create WAPT packages from a Linux shell?
Is it really just a matter of having a Python environment for it to work, or is it a bit more complicated?
Could you explain the process from creating the WAPT zip file, signing it, etc., to uploading it to the WAPT server so I can try creating a package from Linux?
Thanks in advance!
Creating packages from Linux
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
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
Hello,
I've made some progress on this. I'm having a problem signing the package.
I can't get it to sign with OpenSSL via the command line and for WAPT to interpret it correctly. It keeps telling me there's a signature error.
When I try to validate a signature file created with wapt-get.exe on a Windows machine using my .pem and .crt files, the verification fails.
So I thought maybe I wasn't using the right hashing function. With OpenSSL, I'm using SHA256. I'd like to know if you use a particular algorithm.
I tried to reproduce the signature in Python, but I couldn't get the methods in the code to work either.
If you have any tips on this, I'd appreciate it.
I've made some progress on this. I'm having a problem signing the package.
I can't get it to sign with OpenSSL via the command line and for WAPT to interpret it correctly. It keeps telling me there's a signature error.
When I try to validate a signature file created with wapt-get.exe on a Windows machine using my .pem and .crt files, the verification fails.
So I thought maybe I wasn't using the right hashing function. With OpenSSL, I'm using SHA256. I'd like to know if you use a particular algorithm.
I tried to reproduce the signature in Python, but I couldn't get the methods in the code to work either.
If you have any tips on this, I'd appreciate it.
Hello,
I suggest you check the Git repository to find out the hashing type: https://github.com/tranquilit/WAPT
I had a quick look but couldn't find it.
Regards,
I suggest you check the Git repository to find out the hashing type: https://github.com/tranquilit/WAPT
I had a quick look but couldn't find it.
Regards,
Good morning !
And I finally found it! Thanks to several tests and using OpenSSL. So, I'm currently writing the script that will allow it to be done from a Linux shell using tools available on any computer
"Stay Tuned"
Yes, I did look into that. I even completely reread the source code (not all of it, just the functions that interested me)Floflobel wrote:Hello,
I suggest you check the Git repository to find out the hash type: https://github.com/tranquilit/WAPT
I had a quick look but couldn't find it.
Regards,
And I finally found it! Thanks to several tests and using OpenSSL. So, I'm currently writing the script that will allow it to be done from a Linux shell using tools available on any computer
"Stay Tuned"
Here is an "Alpha/Beta" version.Floflobel wrote:I am very interested in the script. I await your reply.
It works, but obviously several parameters are needed to make it work.
https://github.com/Aguay-val/wapt-package-creator/
The readme is currently being written. I am awaiting feedback and/or suggestions for improvements.
Feel free to use the "-h" option to explain the parameters. By default, it works with an HTTPS site. I'll try to implement an option to choose between HTTP and HTTPS and allow self-signed certificates.
I'm not a novice when it comes to scripting, but I'm not an expert either, so feel free to suggest improvements
Bye!
