Last active
October 23, 2022 14:30
-
-
Save spottedmahn/8fd9ec9517da328b77575ca5afdbdbb8 to your computer and use it in GitHub Desktop.
Self Signed Cert Windows 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
$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