Created
February 1, 2019 15:23
-
-
Save sebagomez/1c06e4d1a3cd72f894d652d048e5e126 to your computer and use it in GitHub Desktop.
Enable https via PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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