Securing an ASP.Net application

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

  1. #1

    Default Securing an ASP.Net application

    Hi,
    I am writing a web application, and would like to make it secure. By
    secure I mean, that the data that is transmitted is not altered, and
    if data is stolen the data that they view has no meaning to them.

    I was trying to following this link, though I don't know if I am on
    the correct path.

    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT16.asp[/url]

    Also on that link I am finding a problem. In the part To Generate a
    certificate request, in the Directory Security tab, the Server
    Certificate is unavailable for all type of files and directories.

    Can someone give me further help.
    Thanks in Advance
    Xarky Guest

  2. Similar Questions and Discussions

    1. Securing the CF administrator
      I'm looking for a way to better secure the CF administrator, which comes up at http://www.domain.com/cfide/administrator/index.cfm because of the...
    2. Change password in Securing Application
      Question: I have build a securing application using cflogin and cfloginuser. But when I added changing password function to this application, it...
    3. Securing web service
      Hi How can I make sure that no one else can call and receive data from my web methods? Thanks Regards
    4. Securing a directory
      Hi everyone, I just read an article that said that when you use a web.config file to secure a directory, all it can do is secure the asp.net...
    5. Securing MDBs
      I've got a webserver, IIS6, and an ASP application running on that server. The ASP validates users by their logon name so for this particular...
  3. #2

    Default Re: Securing an ASP.Net application

    SSL provides authentication, private communication (traffic between
    client and server is encrypted), and data integrity (ensures that data
    has not been tampered with during transmission). So to answer your
    first question: You are NOT on the wrong track by choosing SSL.

    Server certificates are set up on a per website basis, and not on
    virtual directories, files, or folders.

    Did you select a website before opening the properties dialog box?

    swat Guest

  4. #3

    Default Re: Securing an ASP.Net application

    Hi,

    I am doing as follows.

    Control Panel -> Administrative Tools -> Internet Information Services

    I open the MyComputer Icon->WebSites->MyProject and then select an aspx
    file. I right click on this file, but the tab Directory Security is not
    found.

    The Tabs I have available are:
    File, File Security, Http Headers, Custom Errors.

    In the File Security, within Secure Communications, there is a Server
    certificate, but this is also disabled.

    What should my problem be?

    I am using Windows XP Professional SP2.
    Internet Information Services - Version: 5.1
    Microsoft Dot Net Framework 1.1

    Can someone help me out.
    Thanks in Advance

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    xarky d_best Guest

  5. #4

    Default Re: Securing an ASP.Net application

    Hi xarky d_best,

    You are selecting a file instead of a website.

    In your case of "MyComputer Icon > WebSites > MyProject", MyProject
    would be the web site, unless you skipped listing "Default Web Site" in
    your path (MyComputer Icon > WebSites > Default Web Site > MyProject).

    If MyProject is a web site, you must right click on it (do not select a
    file under it first), select Properties, click on Directory Security
    tab and continue with the settings as described in the document on
    MSDN. The first tab selected in the properties dialog box when you open
    it should have the title "Web Site" and not "Virtual Directory",
    "Directory", or "File".

    If MyProject is not a website, but a virtual directory or directory,
    you must set up a web site to run your project under of use the
    "Default Web Site" if MyProject is listed under it.

    HTH

    swat Guest

  6. #5

    Default Re: Securing an ASP.Net application

    Hi xarky d_best,

    You are selecting a file instead of a website.

    In your case of "MyComputer Icon > WebSites > MyProject", MyProject
    would be the web site, unless you skipped listing "Default Web Site" in
    your path (MyComputer Icon > WebSites > Default Web Site > MyProject).

    If MyProject is a web site, you must right click on it (do not select a
    file under it first), select Properties, click on Directory Security
    tab and continue with the settings as described in the document on
    MSDN. The first tab selected in the properties dialog box when you open
    it should have the title "Web Site" and not "Virtual Directory",
    "Directory", or "File".

    If MyProject is not a website, but a virtual directory or directory,
    you must set up a web site to run your project under or use the
    "Default Web Site" if MyProject is listed under it.

    HTH

    swat Guest

  7. #6

    Default Re: Securing an ASP.Net application

    Hi,
    Under My Web Sites folder, I have the Default Web Site

    -Web Sites
    - Default Web Site
    + IIS Help
    + Printers
    + aspnet_client
    + MyProject

    Right-Cliking on MyProject, the Server Certificate under the Security
    tab is disabled.

    Right-Cliking on Default Web Site, the Server Certificate under the
    Securtiy tab is enabled. Should I continue to follow the instructions
    from here?

    Thanks

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    xarky d_best Guest

  8. #7

    Default Re: Securing an ASP.Net application

    Yes.

    Another option is to create a new web site, host your application under
    it, and set up SSL for the new web site.

    Note: You can have only one server certificate per web site.

    swat Guest

  9. #8

    Default Re: Securing an ASP.Net application

    Hi,
    How can I create my own Web Site, and then put my project into.

    Also, following the instructions, there seems to make a request to a CA.
    Does this generally take long?

    After following all those steps given in that link, should that all be
    the process of securing my web application.


    Thanks for all your help.



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    xarky d_best Guest

  10. #9

    Default Re: Securing an ASP.Net application

    Sorry. I forgot you were using Win XP. I don't think you can create
    multiple web sites on Win XP. Check out this link for a possible
    workaround:
    [url]http://dotnetjunkies.com/WebLog/mjordan/archive/2003/12/30/5033.aspx[/url]

    You need Microsoft Certificate Services installed on a computer on your
    network to be able to generate your own certificates, which don't take
    long to generate.

    After following the steps, you would have set up SSL for your
    application. And since your requirement was "secure communication", SSL
    would cover this.

    swat Guest

  11. #10

    Default Re: Securing an ASP.Net application

    Sorry. I forgot you were using Win XP. I don't think you can create
    multiple web sites on Win XP. Check out this link for a possible
    workaround:
    [url]http://dotnetjunkies.com/WebLog/mjordan/archive/2003/12/30/5033.aspx[/url]

    You need Microsoft Certificate Services installed on a computer on your
    network to be able to generate your own certificates, which don't take
    long to generate.

    After following the steps, you would have set up SSL for your
    application. And since your requirement was "secure communication", SSL
    would cover this.

    swat Guest

  12. #11

    Default Re: Securing an ASP.Net application

    Hi,
    > You need Microsoft Certificate Services installed on a
    > computer on your network to be able to generate your own
    > certificates, which don't take long to generate.
    Can the Mircosoft Certificate Services be installed on my(same) PC.
    Frow where can these be downloaded or installed?

    Thanks

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    xarky d_best Guest

  13. #12

    Default Re: Securing an ASP.Net application

    Certificate Services is available as a Windows Component in Windows
    2000 server and Windows 2003 server. It can be installed on the same PC
    you are requesting a certificate from.

    swat Guest

  14. #13

    Default Re: Securing an ASP.Net application

    On WinXP?


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    xarky d_best Guest

  15. #14

    Default Re: Securing an ASP.Net application

    Hello xarky d_best,

    nope - only on servers.

    ---------------------------------------
    Dominick Baier - DevelopMentor
    [url]http://www.leastprivilege.com[/url]
    > On WinXP?
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    >


    Dominick Baier [DevelopMentor] Guest

  16. #15

    Default Re: Securing an ASP.Net application

    So its useless trying this solution :(

    Is there another way how I can secure data transfering?



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    xarky d_best Guest

  17. #16

    Default Re: Securing an ASP.Net application

    Hello xarky d_best,

    Well - you only need the server to get the certificate - SSL will work fine
    on XP...

    ---------------------------------------
    Dominick Baier - DevelopMentor
    [url]http://www.leastprivilege.com[/url]
    > So its useless trying this solution :(
    >
    > Is there another way how I can secure data transfering?
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    >


    Dominick Baier [DevelopMentor] 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