Get PodeCertificatePurpose - mdaneri/Pode GitHub Wiki
external help file: Pode-help.xml Module Name: Pode online version: PodeType: Certificate schema: 2.0.0
Retrieves the Enhanced Key Usage (EKU) purposes of an X.509 certificate.
Get-PodeCertificatePurpose [-Certificate] <X509Certificate2> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
This internal function extracts the Enhanced Key Usage (EKU) extension (OID: 2.5.29.37) from an X.509 certificate and returns the recognized purposes.
If the certificate has no EKU extension, an empty array is returned, indicating that the certificate has no usage restrictions.
$purposes = Get-PodeCertificatePurpose -Certificate $cert
Retrieves the list of EKU purposes assigned to the given certificate.
The X509Certificate2 object from which to retrieve the EKU purposes.
Type: X509Certificate2
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.