PowerCLI Reference

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

NameTypeDescriptionRequired?Pipeline InputDefault Value
VTpmVTpm[]Specifies the VTpm device from which the certificate information will be retrieved.trueTrue (ByValue)
CSRTypeCSRTypeSpecifies the signing request type of the certificate. The valid values are: All, ECC, RSA.falseFalse

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.