DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN will not allow https

 14 Replies
 4 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Page 2 of 2 << < 12
Author
Messages
Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!
Posted By Stephen O'Brien on 25 Feb 2022 09:20 AM

fair enough, but DNN does provide an option to force SSL, so surely they thought about this need. Plus there's the fact that this has never happened with any previous implementation of web software I've used, DNN or otherwise.  I think there may be an issue in this current release.

This option was introduced to DNN a long long time ago - maybe because HSTS was not an option in IIS at this time, I don't know anymore. And remember the days when only login forms were HTTPS, and maybe contact forms etc., but not the whole site. This became "necessary" when Chrome and Firefox changed "secure" to "normal" and "normal" to "unsecure". So this otion is a compatipility option in my point of view.

As IIS is able to care about it, there is no more need that the web application is doing it. And therefore, I agree with Richard. Let IIS do the job, and don't care about the setting for each single page in DNN.

Happy DNNing!
Michael

 

 

Michael Tobisch
DNN★MVP

DNN Connect
Growing Member
Posts: 31
Growing Member
New Poster
New Poster
Congrats on posting!

Just for documentation, I faced to a weird problem this morning: I set a SSL certificate on a DNN website and I enabled the SSL mode. I'm using DNN 9.10.2.
When I tried to access to the homepage with my browser using the portal alias in http, it showned the homepage in http. I also can access it in https but I have to specify https in the browser.
I have noticed that the homepage url was different in the menu and it forced the https usage.
The portal homepage wasn't set in the portal settings. Setting it by selecting the homepage solved this.

Maybe it can help someone in the future.

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

One item I'd like to take a slightly different perspective on is whether you enable/enforce SSL from within DNN itself.  I personally ensure that both DNN and IIS are enforcing SSL.  This ensures that if one layer doesn't enforce it for some reason, the other will.  Also, when you take a backup and restore it for testing/development, it's running in SSL by default.  So, you can't forget to restore and test using SSL.  It's basically a failsafe/fallback setting for my processes.  

Now, that won't fix this issue.  

One thing that's difficult for all of this is how difficult it is to get a clean test for this kind of issue.  Web browsers and Windows both cache SSL settings in a way that's difficult to clear and test.  You can even run the command to clear the local DNS, and run in incognito and will still get a false positive/negative.  

When this happens to me, it's usually something very minor was missed, or there's a typo somewhere that's easy to overlook.  Oh, or...  There's a WAF (firewall) in place that also needs to be adjusted.  

  • Double-check the existence and spelling of everything in the database connection strings
  • Double-check the existence and spelling of the correct portal alias everywhere (web(dot)config, PortalAlias table, IIS, SSL bindings, etc.)
  • Make sure you don't have an invalid XML in your web(dot)config.
  • Make sure your web(dot)config doesn't have unsupported sections included (may require enabling IIS tracing)
  • Re-apply permissions and make sure it's using the correct user account with the correct permissions level

If all of that looks okay, the next step I'd take is to enable debugging everywhere, and then run the tests again.  When you turn on all of the debugging features in DNN, it will report a bit more data about the friendly URLs.  To ensure that it's easy to turn on/off debugging without making a mistake, we built a Prompt command to do that for you.  

This video will show you more information about how to use the logs in DNN.  

(By the way, I was just geeking out about how many times I answer forum posts with links to resources we created in the past for someone just like you.)  🤓 

Veteran Member
Posts: 363
Veteran Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

Hey Will, awesome respond man! I already book this in my favorites for troubleshooting on SSL scenarios. Thanks man

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

Thanks, Marco!  Also, something I make sure I do will sound super-simple... Elementary, even!  😉 

When troubleshooting this, I stop trusting my spelling too.  Copy and paste is your friend at this point.  Undoubtedly, there's a mispelling somewhere that is just too easy to miss.  ☹️ 

Page 2 of 2 << < 12

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved