-
1. Re: Connecting to Exchange
splitzer Nov 9, 2007 4:02 PM (in response to voltairesMuse)Brain, you'll need to add "protocol" property. I had same problem.
Syed -
2. Re: Connecting to Exchange
voltairesMuse Nov 12, 2007 6:55 AM (in response to splitzer)I added the protocol="http" but still received the error:
Unable to connect to the Exchange server using HTTP/HTTPS protocol.
HTTP response code : 302
I tried adding protocol="https" and received:
SSLHandshakeException when connecting to the Exchange server at 192.168.0.20 using HTTPS protocol.
The SSL certificate installed on the Exchange server is not found on the ColdFusion server. Ensure that the required certificates are installed in the certificate store of the JVM.
Any possible ideas for further testing? Am I not able to connect for testing purposes using http protocol? Do I need to connect using https? -
3. Re: Connecting to Exchange
ewinyarto Nov 12, 2007 8:00 PM (in response to voltairesMuse)hi Brian,
To use HTTPS to access the exchange server, you must Enabling HTTPS access on your ColdFusion server.
1. Open Outlook Web Access in Internet Explorer and go to File->Properties.
2. Click the certificates button.
3. Click the Details tab and the 'Copy To File' button on the tab. Then follow the wizard options to save the certificate.
To install the certificate, run the following command using keytool.exe, which is in the jre\bin folder:
keytool.exe -importcert -file <path_to_certificate_file> -keystore ..\lib\security\cacerts
for more details you can see at
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfexchange_3.html
-
4. Re: Connecting to Exchange
voltairesMuse Nov 13, 2007 10:14 AM (in response to ewinyarto)I have it working now.
I had to copy the cacerts file to the Coldfusion8/runtime/jre/lib/security directory. It seems when I was using the keytool it was creating the cacerts file in the wrong dirtectory.
Thanks to all that replied!
- Brian -
5. Re: Connecting to Exchange
SteveG144 Nov 19, 2010 12:59 PM (in response to voltairesMuse)I was trying to follow these instructions, and have 3 .cer files that we use for our
Exchange server.
I'm trying to install the certificates, I got 1 installed, but when I try the others, I'm getting:
Certificate not imported, (mkey) already exists.........
But I'm still not able to access the Exchange server.....getting a error that says:
Could not login to the Exchange server.
Verify the server name, username, and password. Ensure that proper client certificates are installed. -
6. Re: Connecting to Exchange
Dave Watts Nov 20, 2010 4:30 PM (in response to SteveG144)You might have to merge these certificates in a single file. They're just text files, you should be able to do this in Notepad. If I recall correctly, you may need to specify them in the same order as their hierarchy: root, intermediate, specific.
Dave Watts, CTO, Fig Leaf Software
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Read this before you post:
http://forums.adobe.com/thread/607238
-
7. Re: Connecting to Exchange
Brynz Aug 27, 2014 9:33 PM (in response to voltairesMuse)This is a 'me too' post.
I'm having the same kind of problem described in the original post.
I got cfexchangeconnection working between ColdFusion 10 on my PC and the exchange 2010 server. This involved importing the server's certificate & etc.
When the working code was transferred to a server running ColdFusion 9, (and yes I did remember to also import the certificate to the server )
I find that the connection no longer works. I get:
Unable to connect to the Exchange server using HTTP/HTTPS protocol.
HTTP response code : 302 Just to get that far, I had to remove the serverversion attribute which was added with CF10 and not supported in CF9
I also tried changing the parameters thusly:(changes in Bold)
<cfexchangeconnection
action="open"
username="#config.username#"
password="#config.pwd#"
connection="mailpickupconn"
server="mail.mydomain.com"
mailboxname="My Account"
protocol="https"
formBasedAuthentication="true"
formBasedAuthenticationURL="https://mail.mydomain.com/owa/auth/owaauth.dll" />
The attributes in BOLD were added from a recommendation I found on another forum, but to no avail....
Is there a cfexchangeconnection solution for the combination of CF9 / Exchange 2010 (&& 2013) / HTTPS ?
TIA and Cheers,


