Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Applying Self-signed Certificate to IIS or IIS Express
$cert = (Get-Item Cert:\LocalMachine\My\EBD8BAF41D6D7AC302692EE84699BD963AD66E42)
$store = (Get-Item Cert:\Localmachine\Root)
$flags = [System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite
$store.Open($flags)
$store.Add($cert)
$store.Close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment