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.
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!
North America
Europe, Middle East and Africa
Asia Pacific