Error message: PEM file does not exist

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
InfoChesnay
Messages: 2
Registration: Oct 09, 2018 - 4:54 p.m.

October 9, 2018 - 5:12 PM

Hello everyone,

We have recently started using WAPT and, following a deployment on a few workstations, we are encountering the following error:

Code: Select all

ERROR IN APPLICATION
An unhandeld exception has occured
EWaptCryptoException: PEM file does not exist
We searched for the public key in the UUID.wapt file corresponding to the machine in question and this file does not appear anywhere on the server.

It appears that the key was not retrieved correctly. However, this does not explain how the device still appears in the console.

We have already tried removing the machine from the console and uninstalling the agent on the machine in question, but the automatic reinstallation of the agent by the GPO that we put in place did not solve the problem.

Do you have any suggestions for bypassing this blockage from the console, directly on the server, or on the workstation?

Thanks in advance.
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 10, 2018 - 12:52

Hello InfoChesnay,
InfoChesnay wrote: Oct 9, 2018 - 5:12 PM We have recently started using WAPT and, following a deployment on a few workstations, we are encountering the following error:

Code: Select all

ERROR IN APPLICATION
An unhandeld exception has occured
EWaptCryptoException: PEM file does not exist
Which log did you get this error in? Could you also provide the version information, e.g. viewtopic.php?f=9&t=886

Do you have the same problem on all workstations, or only on some workstations?

InfoChesnay wrote: Oct 9, 2018 - 5:12 PM We searched for the public key in the UUID.wapt file corresponding to the workstation in question, and this file doesn't appear anywhere on the server.

It seems that the retrieval of this key wasn't done correctly. However, this doesn't explain how the workstation still appears in the console.
Registering a workstation on the WAPT server is not based on any key. The first registration is either "open" (no restrictions), or in Kerberos mode (using the shared secret between the workstation and AD for authentication), or in login/password mode (the admin is at the workstation and enters the server's admin password).

Once the workstation is registered, it exchanges keys with the server, and it is the workstation's key that is then used for authentication. However, the initial authentication (or lack thereof) must be based on something else.

Sincerely,

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
InfoChesnay
Messages: 2
Registration: Oct 09, 2018 - 4:54 p.m.

October 10, 2018 - 4:28 PM

Hello dcardon,

Thank you for your feedback.
For your information:
- WAPT version: 1.5.1.23
- Debian server OS, version 9.5
- Administration is done via the WAPT console on a Windows 10 machine and a Windows Server 2012 R2.

To answer your questions:

1) I didn't see this error in a log file. This error occurs when I'm in the administration console and I try to add a dependency. See attachments "error 1" and "error 2".


2) This problem exists on a few recently installed workstations. The operating system of the user workstations is Windows 10.

3) Regarding the workstation registration in the WAPT server, it is successful since the workstation appears in green in the Status and Reachable columns. See attachments "workstation registration". Furthermore, the agent is installed via a GPO, which, after checking, is working correctly.

To clarify my problem, I want to explain that from my user workstation, I can launch the WaptTray console and then download the packages to install them on the machine. However, when I try to do the same thing via the WAPT management console, I get the two errors shown in the attachments.
Error 1 occurs when I right-click on the host => add a dependency (in my case, a package group) => OK.
Error 2 occurs when I edit the machine => select packages => add dependencies to the package => save and apply.

I think that, based on these two errors, there's a key exchange problem between the host and the server, which prevents authentication and therefore the application of operations from the WAPT management console.

Thank you for your help and feedback. I hope the information provided is clear and sufficiently precise.

Sincerely,

InfoChesnay
Attachments
error 2.PNG
error 2.PNG (92.15 KB) Viewed 3314 times
station recording.PNG
Job registration.PNG (6.71 KB) Viewed 3314 times
error1.PNG
error1.PNG (36.56 KB) Viewed 3314 times
Locked