Skip to main content
Version: 2.2.1-preview

Get-MtLdapCertificateDetail

SYNOPSIS​

Extracts and logs details from an LDAP server certificate.

SYNTAX​

Get-MtLdapCertificateDetail [-Certificate] <X509Certificate> [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION​

Converts the supplied X509Certificate to an X509Certificate2 and writes Subject, Issuer, Thumbprint, validity period, and SerialNumber to the verbose stream. The details are also returned as a hashtable so callers can include them in error messages or diagnostics.

EXAMPLES​

EXAMPLE 1​

Get-MtLdapCertificateDetail -Certificate $certificate

Writes verbose certificate details and returns a detail hashtable.

PARAMETERS​

-Certificate​

The X509Certificate presented by the LDAP server during TLS negotiation.

Type: X509Certificate
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction​

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

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

INPUTS​

OUTPUTS​

System.Collections.Specialized.OrderedDictionary​

NOTES​