Skip to content

Instantly share code, notes, and snippets.

@spottedmahn
Last active October 23, 2022 14:30
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 spottedmahn/8fd9ec9517da328b77575ca5afdbdbb8 to your computer and use it in GitHub Desktop.
Save spottedmahn/8fd9ec9517da328b77575ca5afdbdbb8 to your computer and use it in GitHub Desktop.
Self Signed Cert Windows via PowerShell
$ExpirationDate = (Get-Date).AddYears(20)
New-SelfSignedCertificate -dnsname localhost -subject "CN=BlahApp" -CertStoreLocation "Cert:\LocalMachine\My" -FriendlyName "Blah Local Development Certificate" -NotAfter $ExpirationDate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment