Details of the event with ID 49 of the source Microsoft-Windows-NetworkDeviceEnrollmentService
| Event Source: | Microsoft-Windows-NetworkDeviceEnrollmentService |
| Event ID: | 49 (0x31) |
| Event log: | Application |
| Event type: | Error |
| Symbolic Name: | EVENT_MSCEP_FAILED_DECRYPT_PASSWORD |
| Event text (English): | The Network Device Enrollment Service has failed to decrypt the encrypted password or the decrypted password's length doesn't match the one configured in the registry. To fix this, delete the EncryptedPassword entry in the registry. |
| Event text (German): | Das verschlüsselte Kennwort konnte vom Registrierungsdienst für Netzwerkgeräte nicht entschlüsselt werden, oder die Länge des entschlüsselten Kennworts entspricht nicht der Konfiguration in der Registrierung. Entfernen Sie den Eintrag "EncryptedPassword" aus der Registrierung, um das Problem zu beheben. |
The Network Device Enrollment Service (NDES) provides a way for devices that do not have an identifier in Active Directory (for example, network devices such as routers, switches, printers, thin clients, or smartphones and tablets) to request certificates from a certification authority. For a more detailed description, see the article "Basics: Network Device Enrollment Service (NDES) ".
Example events
The Network Device Enrollment Service has failed to decrypt the encrypted password or the decrypted password’s length doesn’t match the one configured in the registry. To fix this, delete the EncryptedPassword entry in the registry.Description
Do you know TameMyCerts? TameMyCerts is an add-on for the Microsoft certification authority (Active Directory Certificate Services). It extends the function of the certification authority and enables the application of rule sets to realize the secure automation of certificate issuance. TameMyCerts is unique in the Microsoft ecosystem, has already proven itself in countless companies around the world and is available under a free license. It can be downloaded via GitHub and used free of charge. Professional maintenance is also offered.
Occurs when the NDES server has been configured to use a static password and one of the following is true:
Possible cause: Static password cannot be read
The error occurs when the NDES service account cannot read the stored static password (anymore).
The password is stored in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MSCEP\EncryptedPassword\EncryptedPassword
This can be the case, for example, if the service account was subsequently changed and the registry key now has the wrong owner.
The problem can be solved by assigning the correct permissions to the registry key. See the article "Configuring the Network Device Enrollment Service (NDES) to work with a static password ".
Possible cause: Wrong address used
The error can also occur if NDES is called via the wrong address. In some documentation (e.g. Baramundi) the following syntax is suggested:
https://{Adresse-des-NDES-Servers}/certsrv/mscepUnder certain circumstances, it may be useful to try the following notation as well:
https://{Adresse-des-NDES-Servers}/certsrv/mscep/mscep.dll/pkiclient.exeSecurity assessment
The security assessment is based on the three dimensions of confidentiality, integrity and availability.
When this event occurs, availability is compromised, so an alert should be raised.
