Enable SSL in Web.config?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bluenose
    New Member
    • Apr 2012
    • 56

    Enable SSL in Web.config?

    Hello

    I have changed my ASP.NET from version 4.0 to 4.6.1 in Visual Studio 2017. Also in Visual Studio 2017, I have enabled SSL through my project's Properties panel.

    I have noticed, however, that in my project's Web.config file, it says:

    Code:
    <security requireSsl="false"
    Should I now change this to "true"?

    Thank you.
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    Its in the docs:
    true if SSL is required to return the forms-authentication cookie to the server; otherwise, false. The default is false.

    If you need to change this depends on what exactly you are doing. But if you start testing than you should find out if this settings need to be changed.

    Comment

    • Bluenose
      New Member
      • Apr 2012
      • 56

      #3
      Many thanks for your reply, Luuk.

      The project is part of Microsoft's Membership Identity and will need to take https and not http, but no important personal details, such as bank details, are required in any form transactions.

      I will see how it goes then!

      Thanks

      Comment

      • Bluenose
        New Member
        • Apr 2012
        • 56

        #4
        Sorry for the delay in replying.

        Basically, users register, and a link is sent to their email for email confirmation. The user's details are stored in a SQL database and their password hashed.

        The site will allow for students to upload their work to their university lecturer. No money at all is involved.

        So, if my understanding is correct, I should opt for 'enabled'?

        Thanks again

        Comment

        • Luuk
          Recognized Expert Top Contributor
          • Mar 2012
          • 1043

          #5
          You should test both options, and choose the one that fits your needs. I am also not an expert in this (unfortunatly)

          Comment

          Working...