Skip to main content
Participant
Nov 10, 2013 10:10 PM UTC
Question

SSL not working

I have Coldfusion 10 and Coldfusion Builder 2.0 installed entirely on my local Windows 8 machine. I'm using the builtin Tomcat server.

I'm accessing the server using Remote Data Services (RDS).

When I try to run my application it won't run because the IDE runs it as https://localhost:8500/MyApp

If I copy the link and change it to http://localhost:8500/MyApp then it works.

I have both TLS and SSL enabled in Internet Explorer.

I understand that if you use JRun then you have to install a certificate, but I'm not using JRun.

So how can I either get CF Builder to not put the "s" in or get Tomcat to accept it?

Thanks,

Bill

    This topic is closed to new replies. Start a new post to keep the conversation going.

    8 replies

    vishu_13
    Inspiring
    Nov 12, 2013 5:40 PM UTC

    Hi

    Try the steps mentioned below

    Open Command Prompt as Run as Admin and change the directory to  C:\ColdFusion10\jre\bin

    Type the command below and press Enter

    keytool.exe -genkey -alias tomcat -keyalg RSA

    Enter the password : changeit

    Now in the this location: C:\Users\username you will get a .keystore

    Open the server.xml of the ColdFusion instance : C:\ColdFusion10\cfusion\runtime\conf

    Uncomment the SSl/https

      <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"

                   maxThreads="150" scheme="https" secure="true"

                   keystoreFile="C:\Users\username\.keystore" keystorePass="changeit" keyAlias="tomcat"

                   clientAuth="false" sslProtocol="TLS" />

    NOTE : You need to add the keystore info in it as I did above

    Save and restart the ColdFusion 10 Application server service

    Now open https://localhost:8443 and it will work

    NOTE : The https port in server.xml is 8443

    Thanks

    VJ

    Translate
    Participant
    Nov 12, 2013 7:03 PM UTC

    Thank you for these detailed instructions. However, the problem persists.

    The problem is probably related to the fact I’m unable to start my localhost server:

    :ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

    :JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized

    :Error(11/12 at 01:58:47) Server is not responsive.

    Do you know what I would do about that?

    Thanks,

    Bill

    Translate
    vishu_13
    Inspiring
    Nov 12, 2013 7:28 PM UTC

    billrosspaxedi wrote:

    The problem is probably related to the fact I’m unable to start my localhost server:

    Is your hosts file (C:\Windows\System32\drivers\etc) looks like this?

    You need to add 127.0.01 for localhost in the hosts file.

    Thanks
    VJ

    Translate