Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Date Date
Qty:
Subtotal
Promotions
Estimated Shipping
VAT
Calculated at checkout
Total
Checkout
ColdFusion Help / 

ColdFusion MX: Configuring Secure SSL Connection with LDAP Directory Server

Adobe Community Help


Products Affected

  • ColdFusion

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

The cfldap tag in ColdFusion MX provides a convenient interface for users to access LDAP directory servers. To provide additional security, you may choose to use secure SSL connections between ColdFusion and the LDAP server. This TechNote provides step-by-step instructions for configuring an SSL connection between ColdFusion MX and an LDAP server. These instructions use iPlanet LDAP server 5.0.

There are three steps required to set up and use a secure SSL connection between ColdFusion MX and the LDAP server:

  1. Enable LDAP server for SSL communication
  2. Enable ColdFusion for SSL communication
  3. Create template using cfldap secure communication

Enable LDAP server for SSL communication

First, you need to prepare the LDAP server and enable the SSL option for the target server. This involves requesting a server certificate, installing certificates, and configuring the LDAP encrypt option.

  1. Request a server certificate:
    1. Start iPlanet administrator console.
    2. Open the console for the targeted directory server instance where you want to setup SSL.
    3. From the "Tasks" tab, choose "Manage Certificates" and click "Request..." to start the "Certificate Request Wizard."
    4. Follow the instructions, fill out the form and generate the certificate request. Keep the keystore password in a secure place. You will need this password to start the LDAP server after you enable the SSL option.
    5. Send the certificate request to a CA (Certificate Authority) vendor, such as Verisign, for certification.
  2. Install the certified server certificate:
    1. After receiving the certified server certificate, go back to the "Manage Certificate" task in the console and choose "Install."
    2. Follow the instructions and install the certificate.
  3. Install the CA certificate if not already installed:
    1. Obtain the CA certificate from the CA if it is not available.
    2. After receiving the CA certificate from CA, select the "CA Certs" tab from the "Manage Certificate" task console, and click "Install."
    3. Follow the instructions to install the CA certificate. Make sure to check "Accepting Connections from Clients" for the Intended Purpose.
    4. You should now see the CA certificate in the "CA Certs" list. Close the "Manage Certificate" task console.
  4. Configure the encryption option:
    1. Choose "Configuration," then the "Encryption" tab from the LDAP server console.
    2. Check "Enable SSL for this server."
    3. Check "Use this cipher family:RSA," select "Security Device: Internal(software)" and select the certificate you just installed.
    4. Ensure the "Require client authentication" radio button isnot selected since ColdFusion MX doesn't support the client authentication.
    5. Save the settings.
    6. Restart the LDAP server.

Enable ColdFusion for SSL communication

Now that the LDAP server is ready, you will need to configure the ColdFusion server. Since SSL is a two-way trusted communication, the client, ColdFusion in this case, needs to trust and accept the server certificate. The trust can be established by directly knowing the LDAP server certificate or knowing the CA who cerified the server. In ColdFusion, LDAP SSL is implemented using the JSSE specification. The trust can be achieved by importing either the LDAP server certificate or the CA certificate into the Java trusted key store used by ColdFusion.

The default Java trusted key store is called "cacerts", which is located in the {java.home}/jre/lib/security/ directory (or /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/lib/security/ on Max OS X). You will use the Java keytool utility to manage the key store. You may find the keytool utility under either {java.home}/bin/ or {java.home}/jre/bin (keytool.exe for Windows; keytool for UNIX/Linux). Add the keytool path to your command path first for ease of use.

From DOS prompt on Windows:

set PATH=%PATH%;{java.home}/jre/bin

On UNIX/Linux:

export PATH=%PATH;{java.home}/jre/bin

Note: Replace values in braces { } with your own environment setting.

Enter the following command (type on one line) to import the certificate:

keytool -import -keystore cacerts -file {myldapservercert.cer or CAservercert.cer} -alias ldapserver-cert -storepass changeit

The password for the cacerts truststore is "changeit" by default. After import, you may confirm that you have imported the certificate properly by using the following command (type on one line):

keytool -list -keystore cacerts -alias ldapserver-cert -storepass changeit -v

This will list the content of your certificate.

The certificate must be in a Base64-encoded X.509 format. If you get an "Input not an X.509 certificate" error while importing, this may be due to a bug in the version of JDK/JRE and you try to download JDK 1.4.2_03 or later from Sun. Also remember to switch the JDK/JRE used by ColdFusion by editing the java.home property in the jvm.config file.

If you are using JRun as the underlying J2EE server (either the Server Configuration or the J2EE with JRun Configuration) and have enabled SSL for the internal JRun web server(JWS), you will need to import the certificate to the truststore defined in the jrun.xml file for the Secure JWS rather than the JRE key store. By default, the file is called "trustStore" and is typically located underjrun_root/lib for the J2EE with JRun configuration or cf_root/runtime/lib for the ColdFusion Server configuration. You will use the same Java keytool to manage the trustStore.

Create template using CFLDAP secure communication

Now that the SSL connection is configured, you can write the cfldap code to use that secure connection. You only need to specify the secure attribute as "CFSSL_BASIC" in the cfldap tag and the secure LDAP port (636 by default).

For example:

<cfldap    action="query"    name="results"    start="ou=People,dc=siroe,dc=com"    attributes="cn,sn,ou"    sort="cn"    server="myldapserver"    port="636"    password="mypassword"    username="cn=Directory Manager"    secure="CFSSL_BASIC">

Unlike ColdFusion 5, the cert7.db file is not needed any more. Also, cfldap provides limited support for SSL v3 client authentication (user certificate authentication) in ColdFusion MX. Due to a limitation in the JSSE implementation only one client certificate can be used for client authentication and that certificate must be the first one in the certificate store. CFMX does provide full support for SSL v2 (basic username/password authentication over SSL).

Troubleshooting Tip

If you have trouble connecting to your LDAP server using cfldap, it is always a good idea to use a third party tool to verify if the LDAP server is working properly. LDAP browser by Jarek Gawor proves to be a very useful tool. Beginning with build 2.8.1 of the program, it supports SSL as well.

To the top

Additional Information

  • ColdFusion: Maximum SSL encryption levels by version
  • ColdFusion MX: TCP/IP ports used
  • Importing RSA 2048- and 4096-bit certificates into cacerts
Keywords: tn_19139

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement