Jump to content

Wildcard Certificate and Redirection


Stellarflame

Recommended Posts

Hi,

 

I’ve hit a problem with using my SSL certificates that I have deployed with my 6.4.1 UnRaid servers.  I have a wildcard certificate for my network which loads into UnRaid just fine (let’s encrypt doesn’t play well with several devices on my network so a wildcard was the quick and easy way to deploy to the set of devices I have running).  If I directly access the server from the https hostname directly everything works correctly.  However, when I attempt to access my servers using the http to https redirection, it redirects to the wildcard name in the certificate rather than the FQDN of the server.  Obviously * is not the hostname for any of my servers.  I suspect the redirect code is pulling the CN from my certificate as the redirect field.  I can’t find any place to edit the config to manually set the redirect FQDN.  Is it possible to set this somewhere?  Thanks.

Link to comment
  • 2 weeks later...
  • 1 month later...

I ended up editing the startup script:

  /etc/rc.d/rc.nginx

and setting  HOSTSSL to my FQDN instead of the computed value from the SSL certificate:

commented out line 287

and replaced by:

HOSTSSL="blabla.example.com"

 

Works now.

 

Luc

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...