You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WindowsServerDocs/identity/ad-ds/configure-ldap-signing-certificates.md
+47-42Lines changed: 47 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,28 +5,28 @@ author: robinharwood
5
5
ms.author: roharwoo
6
6
ms.service: windows-server
7
7
ms.topic: how-to
8
-
ms.date: 12/17/2025
9
-
8
+
ms.date: 12/18/2025
9
+
ai-usage: ai-assisted
10
10
#CustomerIntent: As a domain administrator, I want to configure LDAP over SSL certificates so that LDAP communications with my domain controllers are encrypted and secure.
11
11
---
12
12
13
13
# Configure certificates for LDAP over SSL in Active Directory Domain Services
14
14
15
15
LDAP over SSL (LDAPS) encrypts LDAP communications between clients and domain controllers using SSL/TLS certificates. This article shows you how to create, install, and verify SSL certificates for LDAPS on domain controllers using either Microsoft certification authorities or third-party certificate providers.
16
16
17
-
By default, LDAP traffic transmits unencrypted over port 389. LDAPS establishes an encrypted SSL/TLS tunnel over port 636 (or port 3269 for global catalog traffic), protecting authentication credentials and directory queries from interception. Installing a properly formatted certificate on your domain controllerautomatically enables the LDAP service to accept SSL connections without additional configuration. To learn more about LDAP signing and channel binding security features, see [LDAP signing for Active Directory Domain Services](ldap-signing.md).
17
+
By default, LDAP traffic transmits unencrypted over port 389. LDAPS establishes an encrypted SSL/TLS tunnel over port 636 (or port 3269 for global catalog traffic), which protects authentication credentials and directory queries from interception. When you install a properly formatted certificate on your domain controller, you automatically enable the LDAP service to accept SSL connections without any extra configuration. For more information about LDAP signing and channel binding security features, see [LDAP signing for Active Directory Domain Services](ldap-signing.md).
18
18
19
19
## Prerequisites
20
20
21
-
Before configuring LDAPS certificates, ensure you have:
21
+
Before configuring LDAPS certificates, make sure you have:
22
22
23
-
- Administrative privileges on the domain controller where you'll install the certificate
23
+
- Administrative privileges on the domain controller where you install the certificate
24
24
25
25
- Access to a certification authority (CA):
26
26
27
27
- Microsoft Enterprise Certificate Authority with published certificate templates, or
28
28
29
-
- Third-party certificate provider (such as DigiCert, Let's Encrypt, or Verisign)
29
+
- Third-party certificate provider such as DigiCert, Let's Encrypt, or Verisign
30
30
31
31
- Firewall rules configured to allow inbound connections on TCP port 636 for LDAPS (or TCP port 3269 for global catalog LDAPS traffic)
32
32
@@ -42,46 +42,46 @@ LDAPS certificates must meet the following requirements:
42
42
43
43
-**Trust chain**: Must be issued by a CA that both the domain controller and LDAPS clients trust
44
44
45
-
Domain controllers and clients establish trust by configuring them to trust the root CA to which the issuing CA chains.
45
+
You establish trust between domain controllers and clients by configuring them to trust the root CA to which the issuing CA chains.
46
46
47
47
## Create the certificate request
48
48
49
-
You can create and install LDAPS certificates using either a Microsoft Enterprise CA or a third-party CA. The certificate must be installed in one of the following locations:
49
+
You can create and install LDAPS certificates using either a Microsoft Enterprise CA or a third-party CA. You must install the certificate in one of the following locations:
Active Directory preferentially checks the NTDS store first. Using the NTDS store provides several advantages:
55
55
56
-
-**Preferential selection**: Active Directory checks the NTDS store first, making it easier to control which certificate is used when multiple valid certificates exist in the Local Computer's store
57
-
-**Automatic detection**: Active Directory detects new certificates dropped into the NTDS store and updates SSL certificates without requiring a domain controller restart
58
-
-**Manual refresh capability**: You can trigger certificate updates using the renewServerCertificate rootDSE operation without restarting the domain controller
56
+
-**Preferential selection**: Active Directory checks the NTDS store first, making it easier to control which certificate is used when multiple valid certificates exist in the Local Computer's store.
57
+
-**Automatic detection**: Active Directory detects new certificates dropped into the NTDS store and updates SSL certificates without requiring a domain controller restart.
58
+
-**Manual refresh capability**: You can trigger certificate updates by using the renewServerCertificate rootDSE operation without restarting the domain controller.
59
59
60
60
To use the NTDS certificate store, import certificates into the Personal certificate store for the NTDS service instead of the Local Computer's Personal store.
If your domain controller has access to a Microsoft Enterprise Certificate Authority, you can request a certificate using the built-in Domain Controller certificate template. To learn more about certificate templates, see [Manage certificate templates](../ad-cs/manage-certificate-templates.md). To request and install the certificate, follow these steps:
64
+
If your domain controller can access a Microsoft Enterprise Certificate Authority, you can request a certificate using the built-in Domain Controller certificate template. For more information about certificate templates, see [Manage certificate templates](../ad-cs/manage-certificate-templates.md). To request and install the certificate, follow these steps:
65
65
66
66
1. On the domain controller, press **Windows key + R**, type **certlm.msc**, and press **Enter**.
67
67
68
-
2. Expand **Personal**, then right-click **Certificates** and select **All Tasks** > **Request New Certificate**.
68
+
1. Expand **Personal**, right-click **Certificates**, and select **All Tasks** > **Request New Certificate**.
69
69
70
-
3. In the Certificate Enrollment wizard, select **Next**.
70
+
1. In the Certificate Enrollment wizard, select **Next**.
71
71
72
-
4. Select **Active Directory Enrollment Policy**, then select **Next**.
72
+
1. Select **Active Directory Enrollment Policy**, and select **Next**.
73
73
74
-
5. Select the **Domain Controller** certificate template checkbox.
74
+
1. Select the **Domain Controller** certificate template checkbox.
75
75
76
-
6. Select **Enroll**.
76
+
1. Select **Enroll**.
77
77
78
-
The certificate is automatically installed in the Local Computer's Personal certificate store. The Domain Controller template is preconfigured with the correct properties for LDAPS, including:
78
+
The process automatically installs the certificate in the Local Computer's Personal certificate store. The Domain Controller template comes preconfigured with the correct properties for LDAPS, including:
79
79
80
80
- Server Authentication enhanced key usage
81
81
- The domain controller's FQDN in the Subject Alternative Name
82
82
- Automatic renewal before expiration
83
83
84
-
After enrollment completes, restart the domain controller to enable LDAPS.
84
+
After the enrollment finishes, restart the domain controller to enable LDAPS.
85
85
86
86
### [Third-party CA](#tab/third-party-ca)
87
87
@@ -116,72 +116,77 @@ Use the Certreq.exe utility to create a certificate request that meets LDAPS req
116
116
;-----------------------------------------------
117
117
```
118
118
119
-
Some third-party certification authorities require additional information in the Subject parameter, such as email address (E), organizational unit (OU), organization (O), locality or city (L), state or province (S), and country or region (C). You can append this information to the Subject name. For example:
119
+
Some third-party certification authorities require additional information in the Subject parameter, such as email address (E), organizational unit (OU), organization (O), locality, or city (L), state or province (S), and country or region (C). You can append this information to the Subject name. For example:
2. Open an elevated command prompt and navigate to the folder containing **request.inf**.
125
+
1. Open an elevated command prompt and go to the folder containing **request.inf**.
126
126
127
-
3. Generate the certificate request file by running:
127
+
1. Generate the certificate request file by running:
128
128
129
129
```cmd
130
130
certreq -new request.inf request.req
131
131
```
132
132
133
133
This command creates a new file named **request.req** containing the base64-encoded certificate request.
134
134
135
-
4. Submit **request.req** to your certification authority:
136
-
- For Microsoft Enterprise CA: Use the CA's web enrollment interface or submit through the Certification Authority console
137
-
- For third-party CA: Follow your provider's certificate request submission process
135
+
1. Submit **request.req** to your certification authority:
136
+
- For Microsoft Enterprise CA: Use the CA's web enrollment interface or submit through the Certification Authority console.
137
+
- For third-party CA: Follow your provider's certificate request submission process.
138
138
139
139
#### Install the certificate
140
140
141
141
After receiving the issued certificate from your certification authority, install it on the domain controller.
142
142
143
143
1. Save the issued certificate as **certnew.cer** in the same folder as your request file. The certificate must be base64-encoded. Some third-party CAs return certificates as base64-encoded text in email messages that you can copy into a new .cer file.
144
144
145
-
2. Open an elevated command prompt and navigate to the folder containing **certnew.cer**.
145
+
1. Open an elevated command prompt and go to the folder containing **certnew.cer**.
146
146
147
-
3. Install the certificate by running:
147
+
1. Install the certificate by running:
148
148
149
149
```cmd
150
150
certreq -accept certnew.cer
151
151
```
152
152
153
-
4. Verify the certificate installation:
153
+
1. Verify the certificate installation:
154
154
155
155
1. Press **Windows key + R**, type **mmc.exe**, and press **Enter**.
6. Locate the newly installed certificate. The **Intended Purposes** column should display **Server Authentication**, and the **Issued To** field should show the computer's fully qualified domain name.
1. Locate the newly installed certificate. The **Intended Purposes** column should display **Server Authentication**, and the **Issued To** field should show the computer's fully qualified domain name.
161
161
162
-
5. Restart the domain controller to enable LDAPS.
162
+
1. To enable LDAPS restart the domain controller.
163
163
164
164
---
165
165
166
166
## Verify LDAPS connectivity
167
167
168
-
After installing the certificate and restarting the domain controller, verify that LDAPS connections work correctly.
168
+
After you install the certificate and restart the domain controller, verify that LDAPS connections work correctly.
169
169
170
170
1. On the domain controller or a domain-joined client computer, open an elevated command prompt.
171
171
172
-
2. Start the Active Directory Administration Tool by running:
172
+
1. Start the Active Directory Administration Tool by running:
173
173
174
174
```cmd
175
175
ldp.exe
176
176
```
177
177
178
-
3. In LDP, select **Connection** > **Connect**.
178
+
1. In LDP, select **Connection** > **Connect**.
179
179
180
-
4. In the **Connect** dialog:
181
-
-**Server**: Type the name of the domain controller
182
-
-**Port**: Type **636**
183
-
- Select the **SSL** checkbox
180
+
1. In the **Connect** dialog:
181
+
-**Server**: Type the name of the domain controller.
182
+
-**Port**: Type **636**.
183
+
- Select the **SSL** checkbox.
184
184
185
-
5. Select **OK**.
185
+
1. Select **OK**.
186
186
187
187
When the connection succeeds, RootDSE information appears in the right pane, confirming LDAPS is functioning. If the connection fails, verify the certificate properties match the requirements and check that the domain controller was restarted after certificate installation.
188
+
189
+
## Next steps
190
+
191
+
> [!div class="nextstepaction"]
192
+
> [Manage LDAP signing using Group Policy](manage-ldap-signing-group-policy.md)
0 commit comments