Created
January 16, 2018 23:24
-
-
Save bzuillsmith/5d5a13d6fab9194dd66fbd298798009a to your computer and use it in GitHub Desktop.
Self-Signed Certificate for Token Signing
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
| # 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