468,113 Members | 2,100 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,113 developers. It's quick & easy.

Enable SSL in Web.config?


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:

Expand|Select|Wrap|Line Numbers
  1. <security requireSsl="false"
Should I now change this to "true"?

Thank you.
Apr 30 '19 #1
4 3442
1,043 Expert 1GB
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.
Apr 30 '19 #2
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!

May 1 '19 #3
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
Jun 10 '19 #4
1,043 Expert 1GB
You should test both options, and choose the one that fits your needs. I am also not an expert in this (unfortunatly)
Jun 10 '19 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by John Smith | last post: by
reply views Thread by Adam Getchell | last post: by
1 post views Thread by simpsoro | last post: by
4 posts views Thread by Highlander | last post: by
4 posts views Thread by TampaWebDevelopment | last post: by
5 posts views Thread by =?Utf-8?B?QWxla3MgS2xleW4=?= | last post: by
1 post views Thread by moondaddy | last post: by
1 post views Thread by Michael Tissington | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.