java - ColdFusion 10 - CFHTTP - Random peer not authenticated on SSL calls (cacerts file updated) -
We have 9 ColdFusion 10 server running version 10,0,13,287689 We used Java version by ColdFusion The correct certificate has been added to the cacerts file. Our CFHTTP SSL calls will work properly for a while, then suddenly they will not begin to certify the colleague. The agian will not work until the ColdFusion Freelance recycled until they fail again. There is no information in Coldfusion-out, coldfusion-error, http, or Cold Fusion Log exceptions in relation to the exception.
Besides, just because CFHTTP HTTPS calls seem to fail at a coldfusion frequency, does not mean they will fail on the other. Our ColdFusion server has many websites that have separate websites. For example, for example, an instance can not certify co-worker, and the other will work correctly using the same Java version and cacerts file. Then, the recycling of the coldfusion frequency, which is not working, will solve the problem and the CFTTP call will not be authenticated by the co-worker.
This problem may be related to:
However, I have taken steps to get any benefit here, one from Raymond and Peter in a comment:
We have contacted Adobe and they are investigating this issue, but I thought that anyone else has experienced these random CFHTP SSL failures
Adobe support is not helping at all Ray certificate is not bad or we have correctly our Siaafres file setup (even though it is working properly Koldfugn 9 and will work after recycled Koldfugn instance for some time).
I have finished working on this issue by interfacing directly with the java.net.URL library, using Cfobject directly when the example of ColdFusion is failing with peer, then it Can not certify that java.net.URL is still working.
This is a snippet of code from my cffunction tag (which is a custom tag), which can help someone else in this situation:
& Lt; Cfset var urlConnection = createObject ("java", "java.net.URL") Init ("# arguments.requestURL #") OpenConnection () & gt; & Lt; Cfset var inputReader = "" & gt; & Lt; Cfset var bufferedReader = "" & gt; & Lt; Cfset url connection connection. & Lt; Cfset urlConnection.setRequestProperty ("user-agent", CGI.HTTP_USER_AGENT) /> & Lt; Cfif arguments.requestMethod EQ "POST" & gt; & Lt; Cfset urlConnection.setRequestProperty ("content-type", "app / x-www-form-urxed") /> & Lt; Cfset urlConnection.setDoOutput (true) /> & Lt; Cfset outputWriter = createObject ("java", "java.io.utputstreamWriter"). Init (urlConnection.getOutputStream ()) & gt; & Lt; Cfset outputWriter.write (arguments.requestData) / & gt; & Lt; Cfset output word.close () /> & Lt; / Cfif> & Lt; Cfif ISNULL (urlConnection.getErrorStream ()) EQ TRUE & gt; & Lt; Cfset inputReader = createObject ("Java", "java.io.InputStreamReader"). Init (urlConnection.getInputStream ()) & gt; & Lt; Cfelse & gt; & Lt; Cfset inputReader = createObject ("Java", "java.io.InputStreamReader"). Init (urlConnection.getErrorStream ()) & gt; & Lt; / Cfif> & Lt; Cfset bufferedReader = createObject ("java", "java.io.bufferedReader"). Init (inputReader) & gt;
Comments
Post a Comment