Certificate Server and KMS Do Not Grant Certificate if DN Is Too Long (276339)
The information in this article applies to:
- Microsoft Windows NT Server 4.0 Terminal Server Edition
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Server, Enterprise Edition 4.0
This article was previously published under Q276339 IMPORTANT: This article contains information about modifying the registry. Before you
modify the registry, make sure to back it up and make sure that you understand how to restore
the registry if a problem occurs. For information about how to back up, restore, and edit the
registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
SYMPTOMS
Certificate Server and Key Management Server (KMS) may not grant a certificate to a client that requests one.
CAUSE
This issue can occur if the Distinguished Name (DN) is too long for the certificate server. Each individual CN= string is less than 64 characters. Certificate Server version 1.0 enforces the limit only on the concatenation of all like Relative Distinguished Names. Certificate Server 1.0 enforces the limit on the concatenated string length only, and it is not possible to disable the enforcement, because the database schema is fixed.
Certificate Server 2.0 (in Microsoft Windows 2000 Server) enforces the length limit on each Relative Distinguished Name (RDN) component, and this enforcement can be disabled by editing the registry. It also enforces a much larger limit on the concatenated string length by using the DB schema (8192 characters for CN=).
RESOLUTIONWARNING: If you use Registry Editor incorrectly, you may cause serious problems that may
require you to reinstall your operating system. Microsoft cannot guarantee that you can solve
problems that result from using Registry Editor incorrectly. Use Registry Editor at your own
risk.
To disable the length enforcement, you must make a registry change on the Certificate Server. You can do so by using the Certutil tool or Regedt32.exe:
Certutil- Open a command prompt.
- Type net stop "certificate services", and then press ENTER.
- Type certutil -setreg ca\EnforceX500NameLengths 0, and then press ENTER.
- Type net start "certificate services", and then press ENTER.
Regedt32.exe
Set the following registry value to zero:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration\<CA Name>\EnforceX500NameLengths
Stop and restart the certificate services.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbprb KB276339 |
---|
|