Set-TrustAuthorityKeyProviderServerCertificate

This cmdlet updates the trusted server certificates of the specified Trust Authority key providers in the Trust Authority vCenter Server system.

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
required
Certificate
X509Certificate2[] 1 Specifies the certificates that you can trust.
required
KeyProvider
TrustAuthorityKeyProvider named
  • pipeline
  • Specifies the Trust Authority key provider that you want to modify.
    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.

    Output

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

    Examples


    Example 1

    PS C:\> $kmipServers = Get-TrustAuthorityKeyProvider -Name "myprovider" -TrustAuthorityCluster "mycluster" | Get-TrustAuthorityKeyProviderServer
    PS C:\> $serverCerts= Get-TrustAuthorityKeyProviderServerCertificate -KeyProviderServer $kmipServers
    PS C:\> Set-TrustAuthorityKeyProviderServerCertificate -KeyProvider "myprovider" -TrustAuthorityCluster "mycluster" -Certificate $serverCerts.Certificate

    Indicates that the Trust Authority key provider myprovider can trust the certificates of the Trust Authority key provider servers in it.

    Related Commands

    Feedback

    Was this page helpful?