{"id":69,"date":"2008-08-01T11:22:19","date_gmt":"2008-08-01T16:22:19","guid":{"rendered":"http:\/\/www.cfchimp.com\/wordpress\/?p=69"},"modified":"2025-01-21T11:22:12","modified_gmt":"2025-01-21T16:22:12","slug":"enabling-ssl-on-the-coldfusion-8-built-in-web-server","status":"publish","type":"post","link":"https:\/\/csimmons.dev\/blog\/2008\/08\/enabling-ssl-on-the-coldfusion-8-built-in-web-server\/","title":{"rendered":"Enabling SSL on the ColdFusion 8 built-in web server"},"content":{"rendered":"<p>This tutorial assumes default install location for ColdFusion 8 on Windows XP.<\/p>\n<p>The first thing you need to do is to create a keystore.  This can be done with the keytool utility.  I used the one that is part of ColdFusion 8.<\/p>\n<p>Open a command prompt.<\/p>\n<p>Execute the following command:<br \/>\n<code>cd C:\\ColdFusion8\\runtime\\jre\\bin<\/code><\/p>\n<p>Create the keystore with this command:<br \/>\n<code>keytool -genkey -dname \"cn=127.0.0.1, ou=CF, o=cfchimp, L=Decatur, ST=GA, C=US\" -keyalg rsa -keystore mykey<\/code><\/p>\n<p>If you have previously configured a keystore you might run into this error:<br \/>\n<code>keytool error: java.lang.Exception: Key pair not generated, alias   already exists<\/code><\/p>\n<p>If you got the &#8220;already exists&#8221; error run this command to list the keystores:<br \/>\n<code>keytool -list -v | more<\/code><\/p>\n<p>If you got the &#8220;already exists&#8221; error run this command to delete the keystore:<br \/>\n<code>keytool -delete -alias mykey<\/code><\/p>\n<p>If you got the &#8220;already exists&#8221; error re-run the command to create the keystore.<\/p>\n<p>Enter in a password when prompted (2 times)<\/p>\n<p>Move the keystore file (mykey) to C:\\ColdFusion8\\runtime\\lib\\<\/p>\n<p>Edit the config file C:\\ColdFusion8\\runtime\\servers\\coldfusion\\SERVER-INF\\jrun.xml with an xml editor of choice.  This file is VERY sensitive so be sure to not screw up the syntax of it.  You should probably make a copy of it before you edit it.<\/p>\n<p><code><br \/>\n&lt;!-- Uncomment this service to use SSL with the JRun Web Server<br \/>\nNote that you MUST create your own keystore before using this service --&gt;<br \/>\n&lt;service class=\"jrun.servlet.http.SSLService\" name=\"SSLService\"&gt;<br \/>\n&lt;attribute name=\"enabled\"&gt;true &lt;\/attribute&gt;<br \/>\n&lt;attribute name=\"interface\"&gt;* &lt;\/attribute&gt;<br \/>\n&lt;attribute name=\"port\"&gt;9100 &lt;\/attribute&gt;<br \/>\n&lt;attribute name=\"keyStore\"&gt;{jrun.rootdir}\/lib\/mykey &lt;\/attribute&gt;<br \/>\n&lt;attribute name=\"keyStorePassword\"&gt;mypassword &lt;\/attribute&gt;<br \/>\n&lt;attribute name=\"trustStore\"&gt;{jrun.rootdir}\/lib\/trustStore &lt;\/attribute&gt;<br \/>\n&lt;attribute name=\"socketFactoryName\"&gt;jrun.servlet.http.JRunSSLServerSocketFactory &lt;\/attribute&gt;<br \/>\n&lt;\/service&gt;<br \/>\n<\/code><\/p>\n<p>Restart the ColdFusion8 application service.<\/p>\n<p>Create a test page in the ColdFusion 8 wwwroot and opening it in a web browser using: https:\/\/127.0.0.1:9100\/testpage.cfm<\/p>\n<p>You should be good to go.<\/p>\n<p><strong>REFERENCES:<\/strong><br \/>\nFor some keytool commands: <a href=\"http:\/\/www.instantssl.com\/ssl-certificate-support\/server_faq\/ssl-server-certificate-java.html\" target=\"_blank\">http:\/\/www.instantssl.com\/ssl-certificate-support\/server_faq\/ssl-server-certificate-java.html<\/a><br \/>\nAdobe instructions: <a href=\"https:\/\/web.archive.org\/web\/20150619022705\/http:\/\/www.adobe.com:80\/support\/coldfusion\/using\/ssl_with_cf_web_server\/ssl_with_cf_web_server03.html\" target=\"_blank\">http:\/\/www.adobe.com\/support\/coldfusion\/using\/ssl_with_cf_web_server\/ssl_with_cf_web_server03.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial assumes default install location for ColdFusion 8 on Windows XP. The first thing you need to do is to create a keystore. This can be done with the keytool utility. I used the one that is part of ColdFusion 8. Open a command prompt. Execute the following command: cd C:\\ColdFusion8\\runtime\\jre\\bin Create the keystore &#8230; <a title=\"Enabling SSL on the ColdFusion 8 built-in web server\" class=\"read-more\" href=\"https:\/\/csimmons.dev\/blog\/2008\/08\/enabling-ssl-on-the-coldfusion-8-built-in-web-server\/\" aria-label=\"Read more about Enabling SSL on the ColdFusion 8 built-in web server\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_cloudinary_featured_overwrite":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[68],"tags":[48,12,71],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-developer","tag-coldfusion","tag-developer","tag-ssl"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pbVg43-17","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":0,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}