Scheduled Tasks and SSL

Ask a Question related to Coldfusion Server Administration, Design and Development.

  1. #1

    Default Scheduled Tasks and SSL

    I cannot get my scheduled tasks to run now that SSL is being used on a
    production box (Windows 2k, MX 6.1, SunOne web server). They worked fine
    before implementing SSL, and they still work if I access them directly by
    browsing to them. I have confirmed that I have the right port set in the url
    (443). For the url of the scheduled tasks in the CFAdmin, I have tried using
    the IP address of the server, localhost, and the domain name that matches the
    SSL cert; none work.

    Nothing happens when the scheduled tasks are supposed to run. No database
    work is done, and no emails are sent out. The error in the scheduler log is
    always the same and unhelpful: "Error while executing task Connection Failure:
    Status code unavailable"

    If I try executing the scheduled tasks manually from the administrator, I get
    the following message:

    "There was an error running your scheduled task. Reasons for which scheduled
    tasks might fail include:

    The URL is a redirection URL.
    The URL is protected by IIS NT Challenge/Response or Apache .htaccess
    password. The Username and Password text fields for editing a scheduled task
    are intended to support Basic Authentication only.
    The Domain Name lookup failed. Try using the IP address of the domain whenever
    possible.
    The URL is an SSL site, but the SSL port was specified incorrectly.
    The Web site is not responding.
    The directory specified for published results does not exist."

    None of these apply. I even get this error message if I try a test scheduled
    task with no actual code and just a "Hello world" message.

    I have tried looking online, both on livedocs and on here, and have seen a lot
    of people with the same problem, but few answers and none that apply to our
    situation. I have also seen the statement that Macromedia says that scheduled
    tasks don't work at all, ever, with SSL. I find that hard to believe since the
    error message contains the statement "The URL is an SSL site, but the SSL port
    was specified incorrectly."

    Is there any way to get this to work short of putting the scheduled tasks in a
    non-SSL area?


    parrot person Guest

  2. Similar Questions and Discussions

    1. Scheduled tasks
      Hi there, My web app needs to run a schduled task - every hour it needs to scan the DB, find any updates and - if there are updates - send an...
    2. Phantom scheduled tasks?
      This morning I had a very curious thing happen. Last night, I put a brand new folder in the folder where I keep all of my scheduled tasks pages. ...
    3. Scheduled tasks . . . again!
      Hi all, I really, really apologize for bringing up this age old problem but I am totally baffled. After having read through SEVERAL forums and...
    4. Scheduled Tasks won't run
      is there anyway to change the user which scheduler uses ? there must be ?
    5. Host doesn't allow scheduled tasks
      I was wondering - since my host doesn't allow the use of scheduled tasks at this time (Using HELM Control Panel) - is there a way I can have CF...
  3. #2

    Default Re: Scheduled Tasks and SSL

    I have scheduled tasks working just fine on an SSL site.

    I'm not defining the port anywhere, just the URL:

    [url]https://secure.mydomain.com/tasks/myTask.cfm[/url]

    It runs every night without fail, and has been since we wrote it.

    Environment:
    SunOne web server, Solaris 8, MX 6.1

    Kronin555 Guest

  4. #3

    Default Re: Scheduled Tasks and SSL

    You'll need to install the certificate into the CFMX keystore.

    [url]http://www.houseoffusion.com/cf_lists/index.cfm/method=messages&Threadid=13865&forumid=4??[/url]

    Andy
    xentrix Guest

  5. #4

    Default Re: Scheduled Tasks and SSL

    Xentrix,

    Thanks for the link. I think this only applies to self-signed certs, however.
    I didn't have to manually import the cert into the keystore, but I'm using a
    Verisign cert.

    I'm still bookmarking that page incase it comes up in the future, though.

    Kronin555 Guest

  6. #5

    Default Re: Scheduled Tasks and SSL

    I have tried including and not including the port.

    It is good to know that you have working scheduled tasks with SSL, but it
    would be more helpful if I could identify *why* yours work and mine don't.

    I wasn't responsible for setting up SSL, I will have to ask the network admin
    what type of cert it is, since that apparently matters.

    parrot person Guest

  7. #6

    Default Re: Scheduled Tasks and SSL

    parrot person,

    What JDK are you running Coldfusion MX on?
    Kronin555 Guest

  8. #7

    Default Re: Scheduled Tasks and SSL

    The cert is by Entrust.

    I'm not sure what JDK we are running.. does that mean what version of SunOne? It is version 6 (not sure 6.what)
    parrot person Guest

  9. #8

    Default Re: Scheduled Tasks and SSL

    I read the page linked to by Xentrix, but that sounds like something to try if you site isn't working at all. Everything is browseable, it's just scheduled tasks that don't work...
    parrot person Guest

  10. #9

    Default Re: Scheduled Tasks and SSL

    You're going to need to import Entrust's root cert into your java keystore.

    From here:
    [url]http://www.caucho.com/quercus/faq/question.xtp?question_id=1306[/url]

    "The Entrust ROOT CA cert is NOT in the JSSE distribution (cacerts file). You
    may have to Export the Root CA cert for Entrust from Internet Explorer and
    either import it into your local keystore or into the cacerts keystore prior to
    attempting to import your cert against the CSR."

    Kronin555 Guest

  11. #10

    Default Re: Scheduled Tasks and SSL

    Kronin555,

    I can of course ask the network admin about the Entrust cert, but again, the
    rest of the site is working. It is only scheduled tasks that do not work. I
    would think that if the cert is the problem, the site as a whole would not
    work.

    We are using ColdFusion 6.1. I do not know what JDK is in use, nor how to
    find that out.

    parrot person Guest

  12. #11

    Default Re: Scheduled Tasks and SSL

    parrot person,

    it's not the cert that's the problem, it's the JDK recognizing the cert as
    valid. The only time the JDK actually looks at the cert is when a scheduled
    task is run, because Coldfusion (java, the JDK) is making a request to the web
    server, which causes Coldfusion (java, the JDK) to ensure that the cert being
    used to encrypt the connection is valid.

    When a user requests a page on your site, that validity check is being made by
    the user's browser, not the JDK on the server. The root Entrust cert is in the
    user's browser, that's why it works fine (comes back as a valid certificate).
    If the root Entrust cert isn't in the java keystore, then when java checks the
    validity of the cert, it fails. Just because your site works when requested
    from a browser doesn't mean it will work when requested from the JDK that is
    running Coldfusion (which is what does the scheduled task calls). If you want
    to test it, write a class that opens an SSL connection to your web server. Then
    try to run that class (but make sure you're running it on the same JDK that
    Coldfusion is running on, as the same user that Coldfusion runs as). That will
    give you a definite yes/no whether it's a java keystore problem or not.

    If you don't want to follow my advice, that's your perogative. SSL scheduled
    tasks work for me, I'm using a Verisign cert. There have been known issues in
    the past with Java verifying Entrust SSL certs. That's what points me to my
    idea that the Entrust root cert isn't in your java keystore. Again: what JDK
    are you using to run Coldfusion with?

    Kronin555 Guest

  13. #12

    Default Re: Scheduled Tasks and SSL

    1 point for Kronin555 :D
    dimV Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139