Create self signed iis ssl certificate from powershell
I got it to work this way
Import-Module WebAdministration Set-Location IIS:\SslBindings New-WebBinding -Name "Default Web Site" -IP "*" -Port 443 -Protocol https $c = New-SelfSignedCertificate -DnsName "myexample.com" -CertStoreLocation cert:\LocalMachine\My $c | New-Item 0.0.0.0!443