loss of private key wapt

Questions about WAPT Server / Requests and help related to the WAPT server
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
STF
Messages: 4
Registration: February 28, 2022 - 2:10 PM

April 1, 2022 - 11:22

Hello,

beginner's mistake: when trying to move a test infrastructure to production, I reinstalled the WAPT console host, thinking I had backed up everything necessary. However, since the initial tests on this infrastructure were done some time ago, I must have placed the key in a specific location and I saved (without checking...) an empty private folder! :cry:

Recovery is complicated, so the question is how to get everything back in working order: should I push a new client signed with a new key (or more simply, a new certificate) to all the affected client machines?

One thing puzzles me, though: when installing the console on a client, a new crt/pem pair is created on that client, but of course, it doesn't allow any real operations on the existing packages and clients. I'm not sure I understand what they're for? :|

Thanks
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 1, 2022 - 3:05 PM

Hello

https://www.wapt.fr/fr/doc-2.2/wapt-com ... rivate-key

Are you sure you don't have a small backup somewhere?

Simo
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 1, 2022 - 3:20 PM

Hello STF,

if you're managing Windows systems connected to Active Directory, the simplest solution is to recreate a certificate/private key pair and repel the agent using a Group Policy Object (GPO).

Regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
STF
Messages: 4
Registration: February 28, 2022 - 2:10 PM

April 4, 2022 - 8:24 AM

Good morning
sfonteneau wrote: Apr 1, 2022 - 3:05 PM
Are you sure you don't have a small backup somewhere?
Unfortunately...yes! :-(

A real beginner's mistake: we set up the platform several months ago, left it in a corner due to lack of time, played around with it from time to time to test by deploying a few clients, then we thought, let's deploy the clients more widely to test further and put it into production, we then had some bugs on the console, so we thought, let's start fresh, we reinstalled the admin machine which had become a garbage machine and bam, no more private key!

I'm proud of myself for that, no worries! :roll:

Well, it's still acceptable given the limited usage history: redeploying a new certificate isn't the biggest problem and we don't have much to resign ourselves to...

Two questions therefore remain unanswered:

- What does the certificate/key pair recreated on the admin's machine correspond to?

- What happens if we delete the packages signed with the old certificate for the machines where these packages are deployed?
User avatar
vcardon
WAPT Expert
Messages: 278
Registration: Oct 06, 2017 - 10:55 p.m.
Location: Nantes, France

April 4, 2022 - 9:09 PM

- What does the certificate/key pair recreated on the admin workstation correspond to?

- What happens if we delete the packages signed with the old certificate for the workstations where these packages are deployed?
The certificate/key pair created on the administrator's machine is:

- your private key, which you will use to sign WAPT packages and actions; keep it safe, but now you have the experience :D

- the public certificate which will be deployed on the computers in the network and which will be used to validate that the WAPT actions and packages have indeed been signed by you.

Regarding your second question, the software is already installed, so if you redeploy a WAPT package with the same package version that is signed with your new key, then WAPT will detect that there is nothing to do.
Vincent CARDON
Tranquil IT
STF
Messages: 4
Registration: February 28, 2022 - 2:10 PM

April 7, 2022 - 6:11 PM

vcardon wrote: Apr 4, 2022 - 9:09 PM
The certificate/key pair created on the administrator's machine is:

- your private key which will be used to sign WAPT packages and actions, to be kept safe, but now you have the experience :D

- the public certificate which will be deployed on the computers in the network and which will be used to validate that the actions and WAPT packages have indeed been signed by you.
Okay, so the console installation creates a key pair each time, what about having multiple admin positions with different roles?

Will we still need to share a single pair of keys for managing the workstations?
Locked