Skip to content

Instantly share code, notes, and snippets.

@jflopezfernandez
Created February 1, 2019 06:10
Show Gist options
  • Save jflopezfernandez/91bf18a315b82e799c8f14a1d275e305 to your computer and use it in GitHub Desktop.
Save jflopezfernandez/91bf18a315b82e799c8f14a1d275e305 to your computer and use it in GitHub Desktop.
Generating local certificate
New-SelfSignedCertificate -CertStoreLocation 'Cert:\LocalMachine\My' -DnsName 'nullptr.root.sx' -FriendlyName 'NullPtrException' -Subject "CN=Jose Fernando Lopez Fernandez" -Type Custom
# Output:
# PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\My
#
# Thumbprint Subject
# ---------- -------
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx CN=Jose Fernando Lopez Fernandez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment