SOLVED: 6.11.1 Problems with SSL and HTTPS


Opus44
Go to solution Solved by ljm42,

Recommended Posts

Scenario One Conditions

  • - myServers plugin not installed
  • - use SSL/TSL no
  • - two SSL certs in /boot/config/ssl/certs 
    root@rocky:/boot/config/ssl/certs# ls -la
    -rw------- 1 root root  2851 Sep 15 15:51 rocky_unraid_bundle.pem
    -rw------- 1 root root  2884 Sep 14 15:56 unraid-server_unraid_bundle.pem

    

  • - Self-signed or user-provided certificate: /boot/config/ssl/certs/rocky_unraid_bundle.pem
  • - Certificate URL: rocky.local
  • - Certificate issuer: O = Self-signed, OU = unRAID, CN = rocky.local
  • - Certificate expiration: Sun 12 Sep 2032 03:51:06 PM CDT
  • - CA-signed certificate file: Not present

    
local access results: 

http://192.168.X.XX/   works- signed in "not secure"  

http://rocky.local/       displays sign-in screen but refuses signin as root   

https://192.168.X.XX/  site can't be reached 

https://rocky.local/     site can't be reached   


Scenario Two:

  • - use SSL/TSL yes
  • - everything else set the same 
     

local access results :

http://192.168.X.XX/ (redirects to https://192.168.X.XX/)                   does not redirect but does sign-in   

https://192.168.X.XX/ (uses certificate rocky_unraid_bundle.pem )   redirects to http and signs in  

http://rocky.local/ (redirects to https://rocky.local/)                         does not redirect but does sign-in     

https://rocky.local/ (uses certificate rocky_unraid_bundle.pem )      redirects to http and signs in    

 


I also have scenarios with the myservers plugin installed while using/not using remote-access that do not behave properly. But before delving into them, I'd like these two scenarios resolved. Let's keep thing simple.  

 

rocky-diagnostics-20221104-0835.zip

Edited by Opus44
Link to comment
  • Solution

You have Unraid 6.11.1, so on the Settings -> Management Access page it lists the available urls for each scenario. In scenario one (Use SSL = No) only the two http urls should be list listed. Hopefully that is clear that the two https urls are not going to work?

 

If you are seeing something different please provide a screenshot of this page in scenario one. I need to see all the settings and the Local Access urls that are listed.

 

> displays sign-in screen but refuses signin as root

 

Your browser is confused because of switching SSL on and off. Two possibilities:

 

One - if you already have a tab open to https://rocky.local then the server will get confused if you disable https and try to access http://rocky.local in another tab.  So close all tabs pointing to the server but one. It may help to completely restart your browser or even your client computer to make sure there really are no hidden tabs open.

 

Two - Your browser may have cached a response that was valid for SSL being enabled but is no longer valid after disabling it. So after doing the above, try accessing the site in private/incognito mode. That will most likely work, so to fix it in your main browser you'll need to clear your cache.


Your scenario two results don't make sense :) I think this is more of the browser confusion mentioned above. Any time you change Use SSL from No to Yes or Yes to No you may need to repeat the steps above.

 

  • Thanks 1
Link to comment
28 minutes ago, ljm42 said:

You have Unraid 6.11.1, so on the Settings -> Management Access page it lists the available urls for each scenario. In scenario one (Use SSL = No) only the two http urls should be list listed. Hopefully that is clear that the two https urls are not going to work?

Yes. that is clear and what I expected.  Only thing I am baffled by with result one is not being able to sign in.  But what you say makes sense and I will flush the cache and see if that clears things up for that scenario.

I totally don't understand the problems with scenario two.  It makes me wonder if there is a problem with the SSL certificate in the /boot/... folder.  Also curious as to why there are two.  Is it because I renamed the UNRAID server after setting it up?
 

  • Like 1
Link to comment
  • Opus44 changed the title to SOLVED: 6.11.1 Problems with SSL and HTTPS

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.