2 Replies Latest reply: Mar 5, 2012 3:10 PM by carl type3 RSS

    Scheduled Tasks Connection Failure using https

    carl type3 Community Member

      When run CF10 scheduled task where url is https the tasks report to run OK “This scheduled task was completed successfully.” however when output is published to file the contents say Connection Failure. If you run the same task as http it works ok and published expected result to file. Run url https in browser using same CFM as scheduled task works OK.

       

      Environment Win7 CF10 using IIS as webserver. IIS has self signed ssl certificate ie not from trusted root certificate authority. Maybe I need to install certificate in to CF10 keystore?

       

      Thanks in advance, Carl.

        • 1. Re: Scheduled Tasks Connection Failure using https
          rupesh_kumar Adobe Employee

          Yes, you would need to import the SSL certificate into the trust store for CF10.

          • 2. Re: Scheduled Tasks Connection Failure using https
            carl type3 Community Member

            Appreciate that Rupesh adding certificate to keystore worked. For interested readers:

             

            1)Set Java environment

            C:\ColdFusion10\jre>set JAVA_HOME=c:\coldfusion10\jre

            C:\ColdFusion10\jre>set PATH=%PATH%;%JAVA_HOME%\bin

             

            2)List what in in keystore

            keytool -list -storepass changeit -keystore ../lib/security/cacerts

            Keystore type: JKS
            Keystore provider: SUN

            Your keystore contains 76 entries


            3)Import certificate in to keystore and list to check added.

            keytool -importcert -storepass changeit -alias inet -keystore ../lib/security/cacerts -trustcacerts -file c:\temp\inet.cer
            Trust this certificate? [no]:  y
            Certificate was added to keystore

             

            keytool -list -storepass changeit -keystore ../lib/security/cacerts

            Keystore type: JKS
            Keystore provider: SUN

            Your keystore contains 77 entries


            4)Restart CF10 app service so keystore is re-read.

             

            5)Run Scheduled Task HTTPS works now!