Seite 1 von 1

Configure SSL certificatite with Powershell script

Verfasst: 8. Sep 2019, 03:54
von Masahiko
HI, all.

I'm running my Windows Server with Lets' encrypt SSL certificate, and certificate is renewed by powershell spript.
I wanna to configure SSL on Lighs-out through Powershell, too.
Can I configure Lightgs-Out by Powershell script?

Thanks in advance.

Re: Configure SSL certificatite with Powershell script

Verfasst: 8. Sep 2019, 09:15
von JoachimL
Hi Masahiko,
assuming you already converted to .pfx, the imho easiest way is to enable central certificate store (CCS, comes with Internet Information Service) and update the certificates there (via powershell or other). In order to get Lights-Out to use CCS you have to excute

Code: Alles auswählen

netsh http add sslcert hostnameport=<your domain here>:7784 appid={12345678-db90-4b66-8b01-88f7af2e36bf}
Without IIS/CCS you can also script like the following

Code: Alles auswählen

certutil -v -p "" -importpfx "MY" <ccs path>\<your domain here>.pfx
"C:\Program Files\AxoNet Software GmbH\LightsOut3\LightsOut2.Server.SSL.exe" -update
Unfortunately the last line was not reliable in some versions of Lights-Out.
Cheers,
Joachim

Re: Configure SSL certificatite with Powershell script

Verfasst: 9. Sep 2019, 15:34
von Masahiko
Hi, JoachimL.

I appreciate your support.
I'll try it, and report.

Masahiko

Re: Configure SSL certificatite with Powershell script

Verfasst: 10. Sep 2019, 10:18
von Martin
Yes, the call

Code: Alles auswählen

"C:\Program Files\AxoNet Software GmbH\LightsOut3\LightsOut2.Server.SSL.exe" -update
was buggy.

Starting with the upcoming 3.0.2, Lights-Out will call this update automatically to ensure that the certs are up-to-date.

Regards
Martin

Re: Configure SSL certificatite with Powershell script

Verfasst: 15. Sep 2019, 14:36
von Masahiko
Hi, Martin.

That's a nice news for me.
I appreciate you support.

Masaihko