Forms Authentication via SSL question

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Forms Authentication via SSL question

    I have an ASP.NET application using forms authentication. I works without
    any problems.

    I have been trying to enable the login process to work over SSL but it fails
    with the same problem everytime: "Access is denied". I have created my own
    SSL certificate and enabled SSL encryption on a sub-directory of the web
    site called "/IRWebAdmin/secure". In this directory is my "AdminLogin.aspx"
    page.

    In the root directory is my "AdminMain.aspx" page that is set as the
    applications default page. On startup the application is directory to the
    "/IRWebAdmin/AdminMain.aspx" page, which then is then referred to
    "/IRWebAdmin/secure/AdminLogin.aspx" to login.

    My web.config settings are:




    <authentication mode="Forms" >
    <forms loginUrl="https://localhost/IRWebAdmin/secure/AdminLogin.aspx"
    requireSSL="true"
    protection="All"
    timeout="20"
    name=".IRADM"
    path="/secure"
    slidingExpiration="true">
    </forms>
    </authentication>

    <authorization>
    <deny users="?" />
    </authorization>




    On running the application I get the standard security alert due to the
    certificate not being from a trusted authority. Clicking YES then displays
    this error page:



    Server Error in '/IRWebAdmin' Application.

    Access is denied.
    Description: An error occurred while accessing the resources required to
    serve this request. The server may not be configured for access to the
    requested URL.

    Error message 401.2.: You do not have permission to view this directory or
    page using the credentials you supplied. Contact the Web server's
    administrator for help.


    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
    Version:1.1.4322.573




    Does anyone have any information as to what I am doing wrong? I have trawled
    the web for days now and nothing gives me the exact answer.

    Regards,
    Gareth.


    Gareth Guest

  2. Similar Questions and Discussions

    1. Forms Authentication Question
      Everything is working in my authentication process except for the fact that I can't retrieve the "UserData" property from the...
    2. Forms authentication then redirection to a secure web with NT authentication?
      Hi, I want to allow access to particular secured intranet web sites. These intranet are stored in sharepoint (2003 version) Actually I've...
    3. asp.net FORMS authentication question
      hi all with forms authentication, how does that work for a site with introduction and tour or maybe some more pages? by using forms...
    4. Basic Forms Authentication question
      I can't get this damn thing to work at all. I have a virtual directory set up with anonymous access only, web.config contains the following but...
    5. Web Services and Forms Authentication Question
      Hello, I'm a newbie in Web Services development. At present, we have a web site implement in ASP.NET with C#. We want to add some web service on...
  3. #2

    Default Re: Forms Authentication via SSL question

    Have you tried installing your Certificate Authority as a trusted CA in the
    "Trusted Root Ceritifcation Authorities" for your local machine (ie. both
    server and client)?

    --
    - Paul Glavich
    Microsoft MVP - ASP.NET


    "Gareth" <gareth> wrote in message
    news:OLr3dRDOEHA.2336@TK2MSFTNGP09.phx.gbl...
    > I have an ASP.NET application using forms authentication. I works without
    > any problems.
    >
    > I have been trying to enable the login process to work over SSL but it
    fails
    > with the same problem everytime: "Access is denied". I have created my
    own
    > SSL certificate and enabled SSL encryption on a sub-directory of the web
    > site called "/IRWebAdmin/secure". In this directory is my
    "AdminLogin.aspx"
    > page.
    >
    > In the root directory is my "AdminMain.aspx" page that is set as the
    > applications default page. On startup the application is directory to the
    > "/IRWebAdmin/AdminMain.aspx" page, which then is then referred to
    > "/IRWebAdmin/secure/AdminLogin.aspx" to login.
    >
    > My web.config settings are:
    >
    >
    >
    >
    > <authentication mode="Forms" >
    > <forms loginUrl="https://localhost/IRWebAdmin/secure/AdminLogin.aspx"
    > requireSSL="true"
    > protection="All"
    > timeout="20"
    > name=".IRADM"
    > path="/secure"
    > slidingExpiration="true">
    > </forms>
    > </authentication>
    >
    > <authorization>
    > <deny users="?" />
    > </authorization>
    >
    >
    >
    >
    > On running the application I get the standard security alert due to the
    > certificate not being from a trusted authority. Clicking YES then displays
    > this error page:
    >
    >
    >
    > Server Error in '/IRWebAdmin' Application.
    >
    > Access is denied.
    > Description: An error occurred while accessing the resources required to
    > serve this request. The server may not be configured for access to the
    > requested URL.
    >
    > Error message 401.2.: You do not have permission to view this directory or
    > page using the credentials you supplied. Contact the Web server's
    > administrator for help.
    >
    >
    > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
    ASP.NET
    > Version:1.1.4322.573
    >
    >
    >
    >
    > Does anyone have any information as to what I am doing wrong? I have
    trawled
    > the web for days now and nothing gives me the exact answer.
    >
    > Regards,
    > Gareth.
    >
    >

    Paul Glavich [MVP - ASP.NET] 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