Page 1 of 1

Creating packages from Linux

Published: August 17, 2016 - 5:39 PM
by Aguay
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!

Re: Creating packages from Linux

Published: October 26, 2016 - 5:59 PM
by Aguay
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. ;)

Re: Creating packages from Linux

Published: October 28, 2016 - 3:40 PM
by Floflobel
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,

Re: Creating packages from Linux

Published: October 28, 2016 - 3:44 PM
by Aguay
Good morning !
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,
Yes, I did look into that. I even completely reread the source code (not all of it, just the functions that interested me)

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"

Re: Creating packages from Linux

Published: October 28, 2016 - 4:07 PM
by Floflobel
I am very interested in the script. I look forward to your reply.

Re: Creating packages from Linux

Published: November 29, 2016 - 9:38 PM
by Aguay
Floflobel wrote:I am very interested in the script. I await your reply.
Here is an "Alpha/Beta" version.

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!

Re: Creating packages from Linux

Published: Dec 1, 2016 - 11:42
by Aguay
I've just fixed a lot of minor errors.

So if you've tried it, you'll need to download it again because I didn't use the correct version of the script when I pushed it.

My bad!