Get-VTpmCertificate

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.

Syntax

-VTpm  <VTpm[]>
[-CSRType  <CSRType>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VTpm
VTpm[] named
  • pipeline
  • Specifies the vTPM device from which you want to retrieve the certificate information.
    optional
    CSRType
    CSRType named Specifies the signing request type of the certificate. The valid values are All, ECC, and RSA.

    Output

    System.Security.Cryptography.X509Certificates.X509Certificate2Collection

    Examples


    Example 1

    Get-VTpm -VM MyVM | Get-VTpmCertificate

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

    Example 2

    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".

    Related Commands

    Feedback

    Was this page helpful?