PowerCLI Reference

Set-TrustAuthorityKeyProviderClientCertificate

Synopsis

This cmdlet updates the client certificate of the specified Trust Authority key providers in the Trust Authority vCenter Server system.

Syntax

Set-TrustAuthorityKeyProviderClientCertificate [-KeyProvider] <TrustAuthorityKeyProvider[]> [-Certificate] <X509Certificate2> [-Confirm] [-PrivateKey <SecureString>] [-PrivateKeyFilePath <String>] [-Server <VIServer[]>] [-TrustAuthorityCluster <TrustAuthorityCluster>] [-WhatIf] [<CommonParameters>]

Set-TrustAuthorityKeyProviderClientCertificate [-KeyProvider] <TrustAuthorityKeyProvider[]> [-CertificateFilePath] <String> [-Confirm] [-PrivateKey <SecureString>] [-PrivateKeyFilePath <String>] [-Server <VIServer[]>] [-TrustAuthorityCluster <TrustAuthorityCluster>] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-TrustAuthorityKeyProviderClientCertificate
New-TrustAuthorityKeyProviderClientCertificate

Detailed Description

This cmdlet updates the client certificate of the specified Trust Authority key providers in the Trust Authority vCenter Server system.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
KeyProviderTrustAuthorityKeyProvider[]Specifies the Trust Authority key providers that you want to modify.trueTrue (ByValue)
CertificateX509Certificate2Specifies the certificate that you want to update to the Trust Authority key provider.trueFalse
CertificateFilePathStringSpecifies the file with the certificate that you want to update to the Trust Authority key provider.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
PrivateKeySecureStringSpecifies the private key part of the certificate that you want to update to the Trust Authority key provider.falseFalse
PrivateKeyFilePathStringSpecifies the file with the private key part of the certificate that you want to update to the Trust Authority key provider.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

System.Security.Cryptography.X509Certificates.X509Certificate2

Notes

Examples

-------------------------- Example 1 --------------------------

Set-TrustAuthorityKeyProviderClientCertificate -KeyProvider mykp -Certificate $mycert -Privatekey $mycertKey

Updates the client certificate of the Trust Authority key provider mykp with the given certificate $mycert and its private key $mycertKey.


Copyright © VMware, Inc. All rights reserved.