IIS 6.0 requring SSL and redirecting when SSL is not enabled.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stepterr
    New Member
    • Nov 2007
    • 157

    IIS 6.0 requring SSL and redirecting when SSL is not enabled.

    All, I'm working on a website that requires SSL enabled on a few pages. The pages are coded in ASP, and I currently have a redirect being called by the pages that require SSL that reloads the page as HTTPS instead of just HTTP. So I have the 403.4 error covered by this redirect.

    My question is what if the user has SSL disabled in their browser? In Internet Explorer 7, when the page is redirected to HTTPS and they have SSL disabled they get a generic error page that displays the following:

    Internet Explorer cannot display the webpage

    Most likely causes:
    You are not connected to the Internet.
    The website is encountering problems.
    There might be a typing error in the address.

    What you can try:
    Diagnose Connection Problems

    More information

    This problem can be caused by a variety of issues, including:
    Internet connectivity has been lost.
    The website is temporarily unavailable.
    The Domain Name Server (DNS) is not reachable.
    The Domain Name Server (DNS) does not have a listing for the website's domain.
    If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.
    The page gives more information but that is the important part. If the user actually reads the error message they may be able to figure out that they need to enable SSL in their browser, but I'd like to be able to throw up a custom error page instead of this one. Does anyone know how I could do that or know which error number the above is falling under so that I could set up some kind of redirect for that as well?
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Here is an article that may help:
    SSL: Both Secure and Friendly? Part II: Requiring SSL and Redirecting.

    Comment

    Working...