Hello,
I'm currently using the free version 1.8.
As stated in the documentation:
"Since the packages in the local repository are signed with the old key, all packages must be re-signed with the new key.
To re-sign all WAPT packages with the new key (software and machine packages), use the command:
wapt-get sign-packages C:\\waptdev\\*
"
I ran this command:
C:\WINDOWS\system32>wapt-get sign-packages C:\\waptdev\\*
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
Unknown action sign-packages
But it didn't solve my problem.
I'm actually testing WAPT; my server is running CentOS 7.5, and the console is on Windows 10.
Perhaps the simplest solution is to start over. Is there a procedure to start from scratch, avoiding reinstalling the server and the console?
Thank you.
re-sign all packages with the new key
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
(Question: Why do you need to resign the packages?)
It is faster to resign the packages directly on the server(Otherwise you will need to download all the packages to your computer, re-sign them and re-upload them)
To do this, you must temporarily copy your private key (.pem) and your certificate to the server (using winscp3 for example) and then launch the wapt-signpackages command in an ssh session on the server.
For example...
Do not leave your key (.pem) on the server.
Help :
It is faster to resign the packages directly on the server(Otherwise you will need to download all the packages to your computer, re-sign them and re-upload them)
To do this, you must temporarily copy your private key (.pem) and your certificate to the server (using winscp3 for example) and then launch the wapt-signpackages command in an ssh session on the server.
For example...
Code: Select all
wapt-signpackages -i -s -c /root/moi.crt -k /root/moi.pem /var/www/wapt/*.waptHelp :
Code: Select all
]# wapt-signpackages --help
Usage: wapt-signpackages -c crtfile package1 package2
Resign a list of packages
Options:
-h, --help show this help message and exit
-c PUBLIC_KEY, --certificate=PUBLIC_KEY
Path to the PEM RSA certificate to embed identitiy in
control. (default: )
-k PRIVATE_KEY, --private-key=PRIVATE_KEY
Path to the PEM RSA private key to sign packages.
(default: )
-l LOGLEVEL, --loglevel=LOGLEVEL
Loglevel (default: warning)
-m MD, --message-digest=MD
Message digest type for signatures. (default: sha256)
-s, --scan-packages Rescan packages and update local Packages index after
signing. (default: False)
-r, --remove-setup Remove setup.py. (default: False)
-i, --inc-release Increase release number when building package
(default: False)
--maturity=SET_MATURITY
Set/change package maturity when signing package.
(default: None)
--keep-signature-date
Keep the current package signature date, and file
changetime (default: False)
--if-needed Re-sign package only if needed
Tranquil IT
I think it's impossible without reinstalling the server and the consolemouka wrote: ↑Jan 29, 2020 - 11:03 AM Hello,
I'm currently using version 1.8 free:
As stated in the documentation:
"Since the packages in the local repository are signed with the old key, all packages must be re-signed with the new key.
To re-sign all WAPT packages with the new key (software and machine packages), use the command:
wapt-get sign-packages C:\\waptdev\\*
"
I ran this:
C:\WINDOWS\system32>wapt-get sign-packages C:\\waptdev\\*
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
Unknown action sign-packages
But my problem is still not resolved.
I'm actually testing WAPT; my server is running CentOS 7.5 and the console is on Windows 10.
Perhaps the simplest solution is to start over. Is there a procedure to begin from scratch, avoiding reinstalling the server and console?
Thank you.
If you find another solution, please write it here
THANKS
As soon as I know it's about technology or spying, like locating a cell phone, I lose interest. I want to know what's going on in people's minds.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Code: Select all
wapt-signpackages -s --message-digest=sha256,sha1 -c C:\private\wapt-private-20180312-1522.crt C:\wapt\waptserver\repository\wapt\*.wapt
