Skip navigation
billrosspaxedi
Currently Being Moderated

SSL not working

Nov 10, 2013 2:10 PM

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

 
Replies
  • Currently Being Moderated
    Nov 12, 2013 9:40 AM   in reply to billrosspaxedi

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 12, 2013 11:28 AM   in reply to billrosspaxedi

    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?

     

    Capture.JPG

     

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

     

    Thanks
    VJ

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 12, 2013 12:00 PM   in reply to billrosspaxedi

    Restart the machine. What happens when you try 127.0.0.1 instead of localhost? Then try

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 12, 2013 12:09 PM   in reply to billrosspaxedi

    As you mentioned above that if you try http://localhost:8500, it works which means there is no issue with the localhost then.

     

    Go to C:\ColdFusion10\cfusion\bin  and take a backup of jvm.config

     

    Now open the jvm.config, Add following argument in jvm.config after the argument line (not in a new line)

     

    -Djavax.net.ssl.trustStore=C:\\ColdFusion10\\jre\\lib\\security\\cacer ts -Djavax.net.ssl.trustStorePassword=changeit

     

    Then restart the ColdFusion 10 Application server service and run https://localhost:8443

     

    Thanks

    VJ

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (1)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points