Problems Configuring HTTPS
indiwa
Posts: 4 Bronze 1
We followed the instructions at:
Regardless whether using a PFX file with a password or a certificate from the localmachine\my store, after restarting the SQL Monitor Web Service, the service immediately stops again.
The certificate is a valid Lets-Encrypt certificate, we tried a wildcard certificate and one for a specific host name.
The logs in:
C:\ProgramData\Red Gate\Logs\SQL Monitor\Website*
don't show any errors
After changing Warning to Debug in:
C:\Program Files\Red Gate\SQL Monitor\Web\RedGate.SqlMonitor.Service.Web.logging.jsonc
C:\Program Files\Red Gate\SQL Monitor\Web\RedGate.SqlMonitor.UI.Website.logging.jsonc
C:\Program Files\Red Gate\SQL Monitor\Web\RedGate.SqlMonitor.UI.Website.logging.jsonc
I get more information, but nothing really helpful.
Also adding the new thumbprint to:
C:\ProgramData\Red Gate\SQL Monitor\RedGate.SqlMonitor.AuthorizedClients.config
did not help
What else can we try here?
BTW The PowerShell script on the documentation page linked below does not work for non-English servers.
Tagged:
Comments
To solve this I added a second IP to the server. The I limited http.sys to one of the IP addresses.
In the Webserver.Kestrel.config I configured the other IP for SQL Monitor.
After doing this the services starts and https for the site works."
Here is my Webserver.Kestrel.config located under C:\ProgramData\Red Gate\SQL Monitor
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<kestrel>
<endpoints>
<http>
<url>http://*:8080</url>
</http>
<https>
<url>https://*:30443</url>
<certificate>
<path>C:/ProgramData/Red Gate/SQL Monitor/SQLMonCert.pfx</path>
<password>B4cC@wJ=Q3hr*y+9Hud3*xDco</password>
</certificate>
</https>
</endpoints>
</kestrel>
</configuration>
A couple of notes:
Even though I had changed the port already, [SQL Monitor Web Service] kept crashing after five or ten seconds of a start, until I stopped it myself after a restart. After that, it didn't crash again. Why? No idea, but I guess the crashing was hindering some stuff to be written down somewhere.
Also, it would be nice with "real " examples in the documentation for the Webserver.Kestrel.config. In my case, I got confused with the / and the [ ]