Get-KrJwkThumbprint

SYNOPSIS

Computes an RFC 7638 JWK thumbprint for an RSA key.

SYNTAX

Certificate (Default)

Get-KrJwkThumbprint [-Certificate] <X509Certificate2> [<CommonParameters>]

Jwk

Get-KrJwkThumbprint [-Jwk] <hashtable> [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Returns the Base64Url-encoded SHA-256 hash of the canonical JWK (RSA) built from the key’s n and e values. You can provide either an X509Certificate2 (preferred) or a JWK hashtable with kty=’RSA’, n and e.

EXAMPLES

EXAMPLE 1

Get-KrJwkThumbprint -Certificate $cert

EXAMPLE 2

Get-KrJwkThumbprint -Jwk @{ kty=’RSA’; n=$n; e=$e }

PARAMETERS

-Certificate

X.509 certificate containing an RSA public key.

Type: System.Security.Cryptography.X509Certificates.X509Certificate2
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Certificate
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Jwk

Hashtable representing an RSA JWK with keys: kty, n, e.

Type: System.Collections.Hashtable
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Jwk
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.String

{{ Fill in the Description }}

NOTES

{{ Fill in the related links here }}