Skip to content

Instantly share code, notes, and snippets.

@bzuillsmith
Created January 16, 2018 23:24
Show Gist options
  • Save bzuillsmith/5d5a13d6fab9194dd66fbd298798009a to your computer and use it in GitHub Desktop.
Save bzuillsmith/5d5a13d6fab9194dd66fbd298798009a to your computer and use it in GitHub Desktop.
Self-Signed Certificate for Token Signing
# The main thing to remember here is -KeySpec Signature
New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my `
-FriendlyName "Token Signing" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3") `
-KeyUsage DigitalSignature -KeyAlgorithm RSA -KeyLength 2048 -KeySpec Signature `
-DnsName <DNS HERE>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment