Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing HTTPS locally with Coldfusion

I would like to test https related development on my local machine before pushing it to staging and production.

The current url is: http://localhost:8500/mysite/index.cfm which works fine

If I try and modify it to https, the page just loads and loads and nothing happens (in chrome it gets to the "This webpage is not available" page)

I have googled for information relating to this, but have not found anything helpful. The only information I have found was related to older versions of CF. From that I have created a my.keystore file, but am not sure what to do with it in CF9.

If any information could be provided that would assist me in setting this up / getting it working and testing, I would be extremely grateful . Thanks

like image 413
Paolo Broccardo Avatar asked Mar 03 '13 22:03

Paolo Broccardo


2 Answers

If you want to enable SSL on the built in JRUN webserver follow the steps described here: Enabling SSL on the ColdFusion 8 built-in web server. Make sure to read the comments section especially what it says about the JVM arguments. Same procedure should work for ColdFusion 9.

Personally I second Paul's answer and would recommend using IIS or Apache, even in a development environment.

like image 153
Andreas Schuldhaus Avatar answered Sep 25 '22 02:09

Andreas Schuldhaus


Install IIS / Apache, hook ColdFusion into the webserver, then install the SSL certificate locally.

Personally I think it's best to replicate production as close as possible in development so I am not a fan of using the inbuilt server and always use a webserver.

like image 22
Paul Avatar answered Sep 23 '22 02:09

Paul