Skip to main content
ilssac
Inspiring
October 29, 2009
Question

Getting cfhttp to work with a site using a self signed certificate.

  • October 29, 2009
  • 1 reply
  • 2118 views

So, after many years, I finally have my first need to make a cfhttps ssl call to a development server using a self signed certificate.  Expecting to have to do some type of import for this operation, I looked up the documenation and found the instructions on how to save a certificate from the browser and import it into the JRun certifcate library.  I followed these instructions and everthing seems to go well, the keytool reports a sucessful import of the certificate, but this does not seem to help ColdFusion, I sill get this results for my http call.  Can anybody advise how I could debug this problem.

<cfhttp url="https://10.104.106.113/index.html" port="443">
index.html <cfoutput>#now()#</cfoutput>
<cfdump var="#cfhttp#">

struct
Charset[empty string]
ErrorDetailI/O Exception: peer not authenticated
FilecontentConnection Failure
Header[empty string]
MimetypeUnable to determine MIME type of file.
Responseheader
struct [empty]
StatuscodeConnection Failure.  Status code unavailable.
TextYES

Thank You

Ian

    This topic has been closed for replies.

    1 reply

    ilssac
    ilssacAuthor
    Inspiring
    October 29, 2009

    Ok, so when importing to the cacerts keystore, make sure you import into the lib/security/cacerts one!

    Do not make a new one in the bin/ directory!!!

    November 22, 2009

    Hi,

    I see that cfhttps bugs and suggestions to fix it are working for 32 bit systems (Coldfusion 7, coldfusion 8).

    We have in our production the 64 Bit Coldfusion 8 running in Linux 64 Bit and it is not working over there.

    We tried all the methods suggested over internet. (Import , check the cerficate listings and restart CF server)

    Import to cacerts/list the certificate and restart the server. (EVERYTHING WORKS BUT AFTER CALLING CFHTTPS IT GIVES ME SAME ERROR).

    We are trying to connect https://www.moneybookers.com/app/email_check.pl

    This is error is fixed in 32 Bit OS and not able to fix for 64 Bit.

    Can somebody help how to fix it in 64 Bit coldfusion/Linux 64 Bit.

    Regards,


    Saikumar