This page is retired and no longer updated. Project documentation and download links are moved to their new home: PowerShell PKI Module.

Show-Certificate

Synopsis

Displays an X509Certificate2 object in a familiar GUI window.

Syntax

Show-Certificate [-Certificate] <X509Certificate2[]> [-Multipick] [<CommonParameters>]

Description

Displays an X509Certificate2 object in a familiar GUI window.

Parameters

-Certificate <X509Certificate2[]>

Specifies an X509Certificate2 object to display.

Required? True
Position? 0
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? False

-Multipick <SwitchParameter>

Specifies whether to show single or multi certificate selection UI. Otherwise you will be able to select only one certificate from a certificate list.

Required? False
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, InformationAction, InformationVariable,
WarningAction, WarningVariable, OutBuffer, PipelineVariable and OutVariable.
For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

System.Security.Cryptography.X509Certificates.X509Certificate2[]

Outputs

None.

Notes

Author: Vadims Podans
Blog: https://www.sysadmins.lv

Examples

Example 1

PS C:\> Get-ADKRACertificate | Show-Certificate -Multipick

Displays certificate selection UI that allows you to select one or more certificates.

Example 2

PS C:\> dir cert:\currentuser\my | Show-Certificate

Displays certificate selection UI that allows you to select only one certificate.

Related links

Show-CertificateRevocationList

Minimum PowerShell version support

  • PowerShell 3.0

Operating System Support

  • Windows Vista
  • Windows 7
  • Windows 8
  • Windows 8.1
  • Windows 10
  • Windows Server 2008 all editions
  • Windows Server 2008 R2 all editions
  • Windows Server 2012 all editions
  • Windows Server 2012 R2 all editions
  • Windows Server 2016 all editions

Share this article: