Skip to content

Instantly share code, notes, and snippets.

@dindoliboon
dindoliboon / Jwt-CreateToken.ps1
Last active March 6, 2024 19:47
System.IdentityModel.Tokens.Jwt with PowerShell to create JWT using RS256
<#
System.IdentityModel.Tokens.Jwt with PowerShell to create JWT using RS256.
http://blog.d-apps.com/2013/08/powershell-and-json-web-token-handler.html
Tested using:
Windows 10.0.18362.628
PowerShell 7.0.0
Windows PowerShell 5.1.18362.628
NuGet 5.4.0.6315
System.IdentityModel.Tokens.Jwt 5.6.0