PowerCLI Reference

Set-TrustAuthorityKeyProviderServerCertificate

Synopsis

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

Syntax

Set-TrustAuthorityKeyProviderServerCertificate [-KeyProvider] <TrustAuthorityKeyProvider> [-Certificate] <X509Certificate2[]> [-Confirm] [-Server <VIServer[]>] [-TrustAuthorityCluster <TrustAuthorityCluster>] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Add-TrustAuthorityKeyProviderServerCertificate
Get-TrustAuthorityKeyProviderServerCertificate
Remove-TrustAuthorityKeyProviderServerCertificate

Detailed Description

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

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
KeyProviderTrustAuthorityKeyProviderSpecifies the Trust Authority key provider that you want to modify.trueTrue (ByValue)
CertificateX509Certificate2[]Specifies the certificates that you can trust.trueFalse
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseFalse
TrustAuthorityClusterTrustAuthorityClusterSpecifies the Trust Authority cluster where the Trust Authority key provider resides.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

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

Notes

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.


Copyright © VMware, Inc. All rights reserved.