Establish Trust Between Key Provider and Key Server
You can use
interfaces from the
to perform trust management
operations.com.vmware.vcenter.trusted_infrastructure.trust_authority_clusters.kms.providers
package- Verify that you have access to a workingvSphere Trust Authorityenvironment.
- Verify that you have Trusted Infrastructure administrative privileges.
You can list and update server certificates,
retrieve, generate, and update client
certificates, generate a CSR, and set the key
server credential.
- List the remote server certificates on the configured key servers to verify the trusted key serversby calling the.list_Task(java.lang.String cluster, java.lang.String provider, CurrentPeerCertificatesTypes.FilterSpec spec)method of theCurrentPeerCertificatesinterface
- Retrieve the list of trusted server certificatesby calling the.get_Task(java.lang.String cluster, java.lang.String provider)method of theTrustedPeerCertificatesinterface
- Update the trusted server certificatesby calling the.update_Task(java.lang.String cluster, java.lang.String provider, TrustedPeerCertificatesTypes.UpdateSpec spec)method of theTrustedPeerCertificatesinterfaceThis operation overwrites the existing list of trusted certificates.
- Retrieve the existing client certificateby calling the.get_Task(java.lang.String cluster, java.lang.String provider)method of theClientCertificateinterfaceIf the operation is successful, you receive the client certificate in PEM format.
- Generate a new self-signed client certificate, used to establish a secure connection to the key serverby calling the.create_Task(java.lang.String cluster, java.lang.String provider)method of theClientCertificateinterfaceThis operation overwrites the existing client certificate.If the operation is successful, you can provide the newly generated self-signed client certificate to the key server to establish trust with the Key Provider.
- Update the client certificate to specify what Key Provider should use to authenticate with the key serverby calling the.update_Task(java.lang.String cluster, java.lang.String provider, ClientCertificateTypes.UpdateSpec spec)method of theClientCertificateinterfaceIf a client certificate exists, this operation overwrites it.
- Generate a certificate signing request (CSR) for the client certificateby calling the.create_Task(java.lang.String cluster, java.lang.String provider)method of theClientCertificateinterfaceIf a CSR exists, this operation overwrites it.If the operation is successful, you receive the client CSR in PEM format and the host ID which issued it. The generated CSR can later be signed by a third party. The signed CSR should be replicated and set on each host.
- Set the key server credential for key servers that require a passwordby calling the.set_Task(java.lang.String cluster, java.lang.String provider, char[] credential)method of theCredentialinterface