PowerCLI Reference

Get-VTpmCSR

Synopsis

This cmdlet retrieves the certficate signing requests(CSR) from the given VTpm devices.

Syntax

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

Related Commands

Get-VTpm
New-VTpm
Remove-VTpm
Set-VTpm
Get-VTpmCertificate

Detailed Description

This cmdlet retrieves the certficate signing requests(CSR) from the given VTpm devices. You can retrive the certificate signing request 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 signing request information will be retrieved.trueTrue (ByValue)
CSRTypeCSRTypeSpecifies the signing request type. The valid values are: All, ECC, RSA.falseFalse

Return Type

System.String[]

Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

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

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

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

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

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


Copyright © VMware, Inc. All rights reserved.