Change the static password of the Network Device Enrollment Service (NDES)

Assume the following scenario:

  • An NDES server is configured on the network.
  • The NDES server is configured to use a static password.
  • The static password should be changed.

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 "Network Device Enrollment Service (NDES) Basics ".

Solution

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.

This is achieved by deleting the EncryptedPassword value below the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MSCEP\EncryptedPassword

Registry Editor, HKLM\SOFTWARE\Microsoft\Cryptography\MSCEP\EncryptedPassword: context menu with "Delete"

Afterwards, the NDES service must be restarted by the iisreset command.

Command prompt: iisreset stops and restarts the Internet services

Now the NDES administration web page (mscep_admin) must be called once so that a new password is generated.

Browser, NDES admin page mscep_admin: "This password can be used multiple times and will not expire." marked in yellow

Of course, the new static password must now be entered in the corresponding applications that use the NDES.

Changing the password regularly

See the article "Regular password change when configuring the Network Device Enrollment Service (NDES) with a static password ".