Solved

cfhttp equivalent of -insecure or -k in cUrl to ignore a less than adequate CA cert on a https site

Posted on 2011-02-24
3
1,166 Views
Last Modified: 2012-08-13
So I'm posting to an https site in coldfusion cfhttp and am getting failures.  Upon closer look using cURL it seems the site has a less than adequate CA cert.  See below for response back from cURL.

curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify faile
d
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.


Now if using the -insecure or -k option in cURL it basically ignores this issue with the site cert and goes about its business.  Essentially in all browsers it ignores this, but just lets you know about it and goes about its business.

Coldfusion however, will just straight out fail.  Anyway around this?  is there a -insecure or -k like option in coldfusion that will allow me to ignore this?
0
Comment
Question by:Michin
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
Hammo777 earned 500 total points
ID: 34980814

I believe this is an option in the CFX_HTTP5 tag that you can buy for $50.  You can also download an evaluation version and try it:

http://www.cftagstore.com/tags/cfxhttp5.cfm
0
 
LVL 2

Author Comment

by:Michin
ID: 34980909
ya, I have read up on that.  Really looking for something built into coldfusion without buying anything external to it.  Otherwise I would just use cURL
0
 
LVL 2

Author Closing Comment

by:Michin
ID: 36257763
that indeed was my only option
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Imagine a situation that you have installed SSL (http://en.wikipedia.org/wiki/Secure_Sockets_Layer) Certificate on your Cisco ASA (Cisco Adaptive Security Appliance) firewall. Installation of SSL certificate on ASA is an another topic for which you …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now