# Get-VTpmCertificate

## Synopsis

This cmdlet retrieves the certificate information from the given VTpm devices.

Syntax

Get-VTpmCertificate [-VTpm] <VTpm[]> [-CSRType {All | ECC | RSA}] [<CommonParameters>]

Related Commands

Get-VTpm
New-VTpm
Remove-VTpm
Set-VTpm
Get-VTpmCSR

Detailed Description

This cmdlet retrieves the certificate information from the given VTpm devices. You can retrive the certificate information from the given VTpm devices by specifying the VTpm device and the certificate signing request type (CSRType): RSA, ECC or All. By default, the certificate signing request type (CSRType) is All.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
VTpm | VTpm[] | Specifies the VTpm device from which the certificate information will be retrieved. | true | True (ByValue)
CSRType | CSRType | Specifies the signing request type of the certificate. The valid values are: All, ECC, RSA. | false | False

Return Type

System.Security.Cryptography.X509Certificates.X509Certificate2Collection

Notes

Examples

-------------------------- Example 1 --------------------------

    PS C:\> Get-VTpm -VM MyVM | Get-VTpmCertificate

Retrieves all the certificate information from the VTpm device of the virtual machine named "MyVM".

-------------------------- Example 2 --------------------------

    PS C:\> Get-VTpm -VM MyVM | Get-VTpmCertificate -CSRType ECC

Retrieves the certificate information, whose encryption algorithm is ECC, from the VTpm device of the virtual machine named "MyVM".

Copyright © VMware, Inc. All rights reserved.