Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created December 11, 2015 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/b436c6d35f218ffb4570 to your computer and use it in GitHub Desktop.
Save justinyoo/b436c6d35f218ffb4570 to your computer and use it in GitHub Desktop.
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