Set-TrustAuthorityKeyProviderClientCertificate

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

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
required
Certificate
X509Certificate2 1 Specifies the certificate that you want to update to the Trust Authority key provider.
required
KeyProvider
TrustAuthorityKeyProvider[] named
  • pipeline
  • Specifies the Trust Authority key providers that you want to modify.
    optional
    PrivateKey
    SecureString named Specifies the private key part of the certificate that you want to update to the Trust Authority key provider.
    optional
    PrivateKeyFilePath
    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
    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.

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

    Parameters

    Required Parameter Name Type Position Features Description
    required
    CertificateFilePath
    String 1 Specifies the file with the certificate that you want to update to the Trust Authority key provider.
    required
    KeyProvider
    TrustAuthorityKeyProvider[] named
  • pipeline
  • Specifies the Trust Authority key providers that you want to modify.
    optional
    PrivateKey
    SecureString named Specifies the private key part of the certificate that you want to update to the Trust Authority key provider.
    optional
    PrivateKeyFilePath
    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
    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

    System.Security.Cryptography.X509Certificates.X509Certificate2

    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.

    Related Commands

    Feedback

    Was this page helpful?