Set-TrustAuthorityKeyProviderClientCertificate
This cmdlet updates the client certificate of the specified Trust Authority key providers in the Trust Authority vCenter Server system.
Syntax
-KeyProvider <TrustAuthorityKeyProvider[]>
[-PrivateKey <SecureString>]
[-PrivateKeyFilePath <String>]
[-Server <VIServer[]>]
[-TrustAuthorityCluster <TrustAuthorityCluster>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
X509Certificate2 | 1 |
|
Specifies the certificate that you want to update to the Trust Authority key provider. | required |
|
TrustAuthorityKeyProvider[] | named |
|
Specifies the Trust Authority key providers that you want to modify. | optional |
|
SecureString | named |
|
Specifies the private key part of the certificate that you want to update to the Trust Authority key provider. | optional |
|
String | named |
|
Specifies the file with the private key part of the certificate that you want to update to the Trust Authority key provider. | optional |
|
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 | named |
|
Specifies the Trust Authority cluster where the Trust Authority key provider resides. |
-KeyProvider <TrustAuthorityKeyProvider[]>
[-PrivateKey <SecureString>]
[-PrivateKeyFilePath <String>]
[-Server <VIServer[]>]
[-TrustAuthorityCluster <TrustAuthorityCluster>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
String | 1 |
|
Specifies the file with the certificate that you want to update to the Trust Authority key provider. | required |
|
TrustAuthorityKeyProvider[] | named |
|
Specifies the Trust Authority key providers that you want to modify. | optional |
|
SecureString | named |
|
Specifies the private key part of the certificate that you want to update to the Trust Authority key provider. | optional |
|
String | named |
|
Specifies the file with the private key part of the certificate that you want to update to the Trust Authority key provider. | optional |
|
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 | named |
|
Specifies the Trust Authority cluster where the Trust Authority key provider resides. |
Output
System.Security.Cryptography.X509Certificates.X509Certificate2
Examples
Example 1
Updates the client certificate of the Trust Authority key provider mykp with the given certificate $mycert and its private key $mycertKey.
Related Commands
TrustAuthorityAttestationService
TrustAuthorityCluster
TrustAuthorityKeyProvider
TrustAuthorityKeyProviderClientCertificate
TrustAuthorityKeyProviderClientCertificateCSR
TrustAuthorityKeyProviderServer
TrustAuthorityKeyProviderServerCertificate
TrustAuthorityKeyProviderService
TrustAuthorityPrincipal
TrustAuthorityServicesInfo
TrustAuthorityServicesStatus
TrustAuthorityTpm2AttestationSettings
TrustAuthorityTpm2CACertificate
TrustAuthorityTpm2EndorsementKey