Skip to content

Self signed certified (Windows)

Geovanni Perez edited this page Aug 30, 2019 · 5 revisions

Run the following script as Administrato using Powershell:

$date_now = Get-Date
$extended_date = $date_now.AddYears(3)

$cert = New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname unosquare.io -notafter $extended_date

Then you can bind the port to the certificate with netsh:

# Run the following script as Administrator
netsh http add sslcert ipport=0.0.0.0:7876 certhash=767b9a3ad23a0cfc597df8be23d58984503c7ad8 appid={adaa04bb-8b63-4073-a12f-d6f8c0b4383f}