Add-TrustAuthorityKeyProviderServerCertificate

This cmdlet adds the certificate from the Trust Authority key provider server to be trusted by the Trust Authority key provider.

Syntax

-Certificate  <X509Certificate2[]>
-KeyProvider  <TrustAuthorityKeyProvider>
[-Server  <VIServer[]>]
[-TrustAuthorityCluster  <TrustAuthorityCluster>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Certificate
X509Certificate2[] named Specifies the certificate to be trusted by the specified Trust Authority key provider.
required
KeyProvider
TrustAuthorityKeyProvider named
  • pipeline
  • Specifies the Trust Authority key provider to trust the specified certificate.
    optional
    Server
    VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
    optional
    TrustAuthorityCluster
    TrustAuthorityCluster named Specifies the Trust Authority cluster where the Trust Authority key provider resides.

    -FilePath  <String>
    -KeyProvider  <TrustAuthorityKeyProvider>
    [-Server  <VIServer[]>]
    [-TrustAuthorityCluster  <TrustAuthorityCluster>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    FilePath
    String named Specifies a file that stores the X509Certificate2 data which you want to be trusted by the Trust Authority key provider.
    required
    KeyProvider
    TrustAuthorityKeyProvider named
  • pipeline
  • Specifies the Trust Authority key provider to trust the specified certificate.
    optional
    Server
    VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
    optional
    TrustAuthorityCluster
    TrustAuthorityCluster named Specifies the Trust Authority cluster where the Trust Authority key provider resides.

    -ServerCertificate  <TrustAuthorityKeyProviderServerCertificate[]>
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    ServerCertificate
    TrustAuthorityKeyProviderServerCertificate[] named
  • pipeline
  • Specifies the Trust Authority key provider server certificate that you can trust.
    optional
    Server
    VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    VMware.VimAutomation.Security.Types.V1.TrustedInfrastructure.TrustAuthorityKeyProviderServerCertificate

    Examples


    Example 1

    $kps = Get-TrustAuthorityKeyProviderServer -KeyProvider myProvider | select -First 1
    $serverCertificate = Get-TrustAuthorityKeyProviderServerCertificate -KeyProviderServer $kps
    Add-TrustAuthorityKeyProviderServerCertificate -ServerCertificate $serverCertificate

    Adds the $serverCertificate certificate which you can retrieve from the first Trust Authority key Provider server in the Trust Authority key provider named myProvider.

    Example 2

    $kps = Get-TrustAuthorityKeyProviderServer -KeyProvider myProvider | select -First 1
    $serverCertificate = Get-TrustAuthorityKeyProviderServerCertificate -KeyProviderServer $kps
    Add-TrustAuthorityKeyProviderServerCertificate -KeyProvider myProvider -Certificate $serverCertificate.Certificate

    Adds the certificate which you want to retrieve from the $serverCertificate certificate to be trusted by the Trust Authority key provider myProvider.

    Related Commands

    Feedback

    Was this page helpful?