SSL Applications
Using SSL to Encrypt LDAP and Global Catalog Queries
While Secure Sockets Layer (SSL) certificates are mainly installed on IIS
machines to encrypt traffic between a Web server and client, you can also use
SSL certificates to secure the Lightweight Directory Access Protocol (LDAP)
protocol. LDAP is used in Active Directory environments by applications that
need to query domain controllers for information stored in Active Directory.
Because LDAP is also utilized to query for sensitive or Active Directory
information such as user names, and network service locations; it is easy for
this information to be seized when no protection exists to secure it.
You can install SSL certificates on Active Directory domain controllers so that
SSL encryption can be utilized to encrypt the following:
- LDAP queries and responses
- Global catalog traffic
By default, unencrypted LDAP traffic uses TCP port 389. If SSL is enabled for encrypting LDAP queries and responses, then TCP port 636 is utilized. By default, global catalog queries use TCP port 3268. If SSL is enabled for
encrypting global catalog queries, then TCP port 3269 is utilized.
LDAP over SSL (LDAPS) is automatically enabled when a domain controller in a forest is configured as an Enterprise CA. Once the Enterprise CA is configured, the remainder of the domain controllers in the forest then enroll and install the certificate automatically. For encryption to work, both the client and server must trust the certification authority (CA) that issued the certificate. To make certificates useful or trusted, you have to obtain a certificate from a trusted entity, called a certification authority (CA). The entities that issue and manage digital certificates are called certificate authorities (CAs). You cannot forge certificates because the CA digitally signs the certificates, and the signature is applied to a hash of the certificate. In addition to each party trusting the issuing CA, the common name of the domain controller must be listed in the Subject field or Subject Alternative Name field of the certificate.
To configure the domain controller as an enterprise CA:
- Place the Windows Server 2003 CD-ROM in the CD-ROM drive.
- Click Install optional Windows components.
- Select Certificate Services in the Wizard Components page.
- When a message appears warning that the name of the CA server cannot be modified, click Yes to acknowledge the warning message. Click Next.
- In the CA Type page, select Enterprise Root CA. Click Next.
- Specify a common name for the CA.
- Specify a validity period for which certificates issued by the CA are valid. Click Next.
- You can accept the default location settings for the database file and database log. Click Next.
- Click Yes if an ASP warning message is displayed, to acknowledge the message.
- Click Finish.
Using SSL on Mail Servers
You can utilize the Secure Sockets Layer (SSL) protocol and Transport Layer Security (TLS) to enable secure communication by encrypting messages between a client and server, and between mail servers in a particular organization. TLS is a internet standard version of SSL and is very similar to Secure Sockets Layer version 3 (SSLv3).
Both the Simple Mail Transfer Protocol (SMTP) service and Post Office Protocol 3 (POP3) service are included in Windows Server 2003. To use these services, you merely have to install them. SSL encryption can only though be configured for SMTP.
How to install the Simple Mail Transfer Protocol (SMTP) service:
- Place the Windows Server 2003 CD-ROM in the CD-ROM drive.
- Click Start, Control Panel, and click Add/Remove Programs.
- Click Add/Remove Windows Components in the Add Or Remove Programs dialog box.
- Click Application Server in the Windows Components dialog box, and then click the Details button.
li>The Application Server dialog box appears next. - Click IIS and then select the Details button.
- Click the SMTP Service checkbox.
- Click OK.
- Open IIS Manager.
- Verify that the SMTP Virtual Server node appears in the console tree.
How to create a SMTP virtual server:
- Open the IIS Manager.
- Locate the computer, right-click Default SMTP Server, select New and then Virtual Server from the shortcut menu.
- The New SMTP Virtual Server Wizard initiates.
- Enter a name for the SMTP site. Click Next.
- On the Select IP Address page, enter the IP address settings for the SMTP site. Click Next.
- Enter the path to the home directory for the SMTP server. Click Next.
- Provide the domain name for the SMTP server. Click Next.
- Click Finish.
You can configure various configuration settings for an SMTP virtual server by accessing its Properties window, and then using the various tabs to configure these settings. The security configuration settings that can be configured for SMTP reside on the Access tab are. For SSL/TLS encryption, the Secure Communication area of the Access tab is utilized. You can click the Certificate button to start the Web Server Certificate Wizard to obtain and install a server certificate on the SMTP virtual server. After the server certificate is installed, click the Communication button to require secure communications.
How to install an SSL certificate to enable SMTP encryption:
- Open the IIS Manager.
- In the console tree, right-click the Default SMTP Virtual Server node, and click Properties from the shortcut menu.
- Click the Access tab.
- In the Secure Communication area of the Access tab, click Certificate.
- The Web Server Certificate Wizard starts.
- Follow the prompts of the wizard to install the server certificate for the SMTP virtual server.
How to require all clients to use SSL encryption:
- Click Start, click All Programs, click Microsoft Exchange, and click System Manager.
- In the console tree, expand the Servers node, expand the appropriate Computer node, expand Protocols, and then expand SMTP.
- Right-click the SMTP virtual server, or the POP3 or IMAP4 virtual server, and select Properties on the shortcut menu.
- When the Properties window for the virtual server which you have selected opens, click the Access tab.
- Click the Communication button.
- Click the Require Secure Channel checkbox.
- If applicable, enable the Require 128-Bit Encryption checkbox as well.
- Click OK.
How to configure a messaging client to use SSL encryption. This illustration utilizes the Outlook 2003 client:
- Open Control Panel.
- Double-click Mail.
- Click E-Mail Accounts.
- The E-Mail Accounts Wizard starts.
- Click View Or Change Existing E-Mail Accounts. Click Next.
- Select the account for which encryption should be enabled, and click Change.
- On the Internet E-Mail Settings page, click More Settings.
- Switch to the Advanced tab.
- Enable the This Server Requires An Encrypted Connection (SSL) checkbox for those protocols that should have encryption enabled. Click OK.
- Click Next. Click Finish.
Using SSL on Computers Running SQL Server
You can also use SSL certificates to secure data generated by SQL Server queries. You can enable SQL Server SSL encryption on:
- SQL Server computer: To encrypt all communication using SSL encryption on a particular server running SQL Server, you would need to enable SSL on the SQL Server computer. No connections would though be allowed for any clients not supporting SSL encryption. In order to enable SSL encryption on the SQL Server computer, you need to perform the following tasks:
- Install a server certificate.
- Configure all clients to trust the root CA of the certificate.
- SQL Server clients: If you have to allow certain clients to connect to the SQL Server computer without using SSL encryption, and allow other clients to connect to the SQL Server computer only through using SSL encryption, then you would need to enable SSL encryption for individual clients.
How to manually configure clients to trust the root CA. This involves the following steps:
- Export the SQL Server certificate.
- Copy the exported certificates to each client by importing the certificate into each client’s trusted root CAs.
To export the SQL Server certificate:
- Log on the computer running SQL Server.
- Open Internet Explorer, and select Internet Options from the Tool menu to open the Internet Properties dialog box.
- Switch to the Content tab.
- Click Certificates.
- Switch to the Trusted Root Certification Authorities tab.
- Select the CA that issued the certificate to the SQL Server computer from the available list, and click Export.
- The Certificate Export Wizard launches.
- Click Next on the initial screen of the Wizard.
- On the Export File Format page, select the Cryptographic Message Syntax Standard – PKCS #7 Certificates (.P7B) option.
- Enable the Include All The Certificates In The Certification Path If Possible checkbox. Click Next.
- On the File To Export page, enter a name for the file which will contain the certificate you are exporting. Click Next.
- Click Finish.
How to import the certificate into each client’s trusted root CAs:
- On the client computer running SQL Server, open Internet Explorer.
- Select Internet Options from the Tool menu to open the Internet Properties dialog box.
- Switch to the Content tab.
- Click Certificates.
- Switch to the Trusted Root Certification Authorities tab.
- Click Import.
- The Certificate Import Wizard launches.
- Click Next on the initial screen of the Wizard.
- On the File To Import page, choose the certificate which was exported from the SQL Server computer. Click Next.
- Select Automatically Select The Certificate Store Based On The Type Of Certificate.
- Click Next. Click Finish.
- Click Yes to add the certificate to the root store.
- Click OK. Click Close.
How to require SSL encryption on the computer running SQL Server:
- Click Start, click All Programs, click Microsoft SQL Server, and click Enterprise Manager.
- Find and right-click the computer running SQL Server, and then select Properties from the shortcut menu.
- On the General tab, click Network Configuration.
- Click the Force Protocol Encryption checkbox.
- Click OK.
- Click OK to restart the SQL Server service.
Comments - No Responses to “SSL Applications”
Sorry but comments are closed at this time.