Skip to main content
Participating Frequently
January 26, 2015
Question

Coldfusion 11 SSL Certs applied - The APR based Apache Tomcat library which allows optimal performance in production environments,

  • January 26, 2015
  • 2 replies
  • 2165 views

Coldfusion 11

Windows Server 2012 R2

Both the Coldfusion admin and additonal site work fine on HTTP.

As soon as I attempt to enable SSL websockets and install SSL certs, the Coldfusion 11 Application service will not start. I followed the steps below....

Coldfusion 11 - Web Sockets via SSL

The Coldfusion-error.log shows

Jan 26, 2015 3:21:23 PM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

Server was a cloned VM of the test server with developer copy of CF11, but license has been purchased and applied. SSL certs have been imported successfully, paths are correct in CF Admin to the cert file etc.

Do I need to install another version of Coldfusion to get around this issue or is there a download update I need to apply?

If i reconfig the \cfusion\runtime\conf\server.xml to comment out the SSL sections it works fine.

Any assistance welcome - I can't allow this site to made publicly available with using SSL.

SM

This topic has been closed for replies.

2 replies

Brainiac
January 27, 2015

Hi Scott,

For CF out log reporting - The APR based Apache Tomcat library which allows optimal performance in production environments etc

You could try download tomcat native, extract that then place "x64\tcnative-1.dll" in ColdFusion11\cfusion\lib. CF will need a restart to apply that.

Think Charlie likely prompted you in right direction - Does the Java that CF is using have your SSL Cer file added to cacerts (trusted certificates).

HTH, Carl.

Participating Frequently
January 27, 2015

Hi Carl,

thanks for the info - I think given that same entry appears in the logfile regardless of working with HTTP or HTTPS, we can discard.

Yes the SSL certs have been added to the cacerts file.

Scott

Charlie Arehart
Adobe Expert
January 27, 2015

@Scott, first are you running update 3? If so, let’s clarify at the outside that, as that bug report (you point to) does indicate in the notes below it, there is a fix for a problem where this feature broke in that release. And as it notes, you can email cfsup@adobe.com to request the fix (referring to that bug), or you can wait for it to be released publicly as part of a larger set of fixes.

If you are NOT on update 3, or you may apply the fix and find things still don’t work, I would wonder about a few things, from what you’ve described.

First, you say that the CF service won’t start, and you offer some lines from the ColdFusion-error log. Just to be clear, those particular error messages are common and nothing to worry about. They definitely do NOT reflect any reason CF doesn’t start. But are you confirming that that time (in the log lines) is in fact the time that you had started CF, when it would not start? I’d suspect not.

Look instead in the coldfusin-out.log. What does THAT log show at the time you try to start CF and it won’t start? You may find something else there. (And since you refer to editing the server.xml file, you may the log complains that because of an error in the XML it can’t “parse” the file. It’s worth checking.

You say also that you have confirmed that “paths are correct in CF Admin to the cert file”. What path are you referring to? There’s no page in the CF admin that points to the CACERTS file in which the certs are stored. Do you perhaps mean on the “system info” or “settings summary” page? Even so there’s still no line in there which refers to the “cert file”.

Instead—and this could be a part of your problem—the cert file is simply found WITHIN the directory where CF’s pointed to to find its JVM. Wherever THAT is, is where you need to put any certificates. So take a look at the CF Admin, either in the ”java and jvm” page (and the value of its “Java Virtual Machine Path”), or in the “settings summary” or “system information” pages and their value for “Java Home”. Is that something like \coldfusion11\jre? Or something like \Java\jdk1.7.0_71\jre? Whichever it is, THAT’s where you need to put the certs, within there (in its \lib\security folder).

Finally, when you say that if you “comment out the SSL sections it works fine”, do you mean that a) CF comes up and b) some example code calling your socket works, as long as you don’t use SSL?

To be clear, no, you don’t need any other version of CF11 to get websockets to work. But if you are on update 3, that may be the simple problem. Let us know how it goes for you with this info.

/charlie

/Charlie (troubleshooter, carehart. org)
Participating Frequently
January 27, 2015

Hi Charlie,

thanks for taking the time to assist - appreciated.

I did consider updating Coldfusion to update 2 or 3, but saw some of the issues with them so decided not to. The build number is 11.0.0.289974.

I think we can discount the error I posted above -  "INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path". The entry appears in the log file regardless if its running on HTTP or HTTPS.

The coldfusion-out.log doesnt show anything failing, but it does show when I changed the websocket settings - the entries before (on HTTP) and after (on HTTPS) are identical. So its as if CF thinks its working fine, despite the service failing.

The paths to the certs, or rather to the keystore file I should have said (E:/ColdFusion11/jre/lib/security/cacerts) is shown on the Server Settings > Websocket page. I'll check out the JVM settings and certs there - thanks for the pointer.

Yes, when I comment out the SSL sections in the server.xml, the Coldfusion application and the hosted site start quite happily.

Thanks again for your assistance

Scott

Participating Frequently
January 27, 2015

Just checked the JVM settings - E:/Coldfusion11/jre. The cacerts file is in the /lib/security sub folder.

I'll try and couple of things and report back later.