Skip to content

Instantly share code, notes, and snippets.

@sebagomez
Created February 1, 2019 15:23
Show Gist options
  • Save sebagomez/1c06e4d1a3cd72f894d652d048e5e126 to your computer and use it in GitHub Desktop.
Save sebagomez/1c06e4d1a3cd72f894d652d048e5e126 to your computer and use it in GitHub Desktop.
Enable https via PowerShell
$cert = (New-SelfSignedCertificate -DnsName localhost -CertStoreLocation cert:Localmachine\My).Thumbprint
New-WebBinding -Name "Default Web Site" -IP "*" -Port 443 -Protocol https
Get-Item cert:\LocalMachine\MY\$cert | New-Item IIS:\SslBindings\0.0.0.0!443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment