# Managed Object - CryptoManagerKmip(vim.encryption.CryptoManagerKmip)

Extends
  CryptoManager
See also
  CryptoKeyResult, CryptoManagerKmipClusterStatus, CryptoManagerKmipServerCertInfo, KeyProviderId, KmipClusterInfo, KmipServerInfo, KmipServerSpec
Since
  vSphere API 6.5

## Managed Object Description

Singleton Managed Object used to manage cryptographic keys.

Properties

Name | Type | Description
--- | --- | ---
kmipServers* | KmipClusterInfo[] | A list of registered KMIP servers, grouped by clusters.
Properties inherited from CryptoManager
enabled

*May not be present

Methods

Methods defined in this Managed Object
GenerateClientCsr, GenerateKey, GenerateSelfSignedClientCert, ListKmipServers, MarkDefault, RegisterKmipServer, RemoveKmipServer, RetrieveClientCert, RetrieveClientCsr, RetrieveKmipServerCert, RetrieveKmipServersStatus_Task, RetrieveSelfSignedClientCert, UpdateKmipServer, UpdateKmsSignedCsrClientCert, UpdateSelfSignedClientCert, UploadClientCert, UploadKmipServerCert
Methods inherited from CryptoManager
AddKey, AddKeys, ListKeys, RemoveKey, RemoveKeys

# GenerateClientCsr(generateClientCsr)

Generate a certificate signing request with its private key. This generates a CSR request as well as its private key. The private key will not be returned to caller for security protection. If this method is called again, the CSR and private key generated in the new invocation will overwrite the old ones. After the CSR is signed by KMS into a certificate, it should be updated by calling UpdateKmsSignedCsrClientCert. The generated CSR can be later retrieved by calling RetrieveClientCsr.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
cluster | KeyProviderId | [in] KMIP cluster.

Return Value

Type | Description
--- | ---
xsd:string | A newly generated CSR.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="GenerateClientCsr" type="vim25:GenerateClientCsrRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="GenerateClientCsrResponse"> <complexType> <sequence> <element name="returnval" type="xsd:string"/> </sequence> </complexType> </element>

# GenerateKey(generateKey)

Generate new encryption key.

Required Privileges
  Cryptographer.ManageKeys

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
keyProvider* | KeyProviderId | [in] Which provider will generate the key. If omitted, will use the default key provider.

*Need not be set

Return Value

Type | Description
--- | ---
CryptoKeyResult | The generated key.

Faults

Type | Description
--- | ---
InvalidArgument | in case of wrong keyServer
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="GenerateKey" type="vim25:GenerateKeyRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="GenerateKeyResponse"> <complexType> <sequence> <element name="returnval" type="vim25:CryptoKeyResult"/> </sequence> </complexType> </element>

# GenerateSelfSignedClientCert(generateSelfSignedClientCert)

Generate a self-signed client certificate with its private key. This generates a self signed certificate as well as its private key. The private key will not be returned to caller for security protection. If this method is called again, the certificate and private key generated in the new invocation will overwrite the old ones. The generated certificate will not replace current working certificate until UpdateSelfSignedClientCert is called. The generated self signed certificate can be later retrieved by calling RetrieveSelfSignedClientCert.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
cluster | KeyProviderId | [in] KMIP cluster.

Return Value

Type | Description
--- | ---
xsd:string | A new self-signed client certificate.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="GenerateSelfSignedClientCert" type="vim25:GenerateSelfSignedClientCertRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="GenerateSelfSignedClientCertResponse"> <complexType> <sequence> <element name="returnval" type="xsd:string"/> </sequence> </complexType> </element>

# ListKmipServers(listKmipServers)

List the registered KMIP servers.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
limit* | xsd:int | [in] maximum clusters to return.

*Need not be set

Return Value

Type | Description
--- | ---
KmipClusterInfo[] | List of known KMIP servers grouped in clusters.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="ListKmipServers" type="vim25:ListKmipServersRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="ListKmipServersResponse"> <complexType> <sequence> <element name="returnval" type="vim25:KmipClusterInfo" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> </element>

# MarkDefault(markDefault)

Set the default KMIP cluster.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
clusterId | KeyProviderId | [in] KMIP cluster ID to become default.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
InvalidArgument | Thrown if a cluster with this ID is not registered.
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="MarkDefault" type="vim25:MarkDefaultRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="MarkDefaultResponse"> <complexType/> </element>

# RegisterKmipServer(registerKmipServer)

Register a KMIP server.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
server | KmipServerSpec | [in] KMIP server connection information.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
InvalidArgument | in case the server is already registered, or the parameters are not valid.
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RegisterKmipServer" type="vim25:RegisterKmipServerRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RegisterKmipServerResponse"> <complexType/> </element>

# RemoveKmipServer(removeKmipServer)

Remove a KMIP server, even if in use.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
clusterId | KeyProviderId | [in] KMIP cluster ID.
serverName | xsd:string | [in] KMIP server name.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
InvalidArgument | in case the server is not found.
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RemoveKmipServer" type="vim25:RemoveKmipServerRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RemoveKmipServerResponse"> <complexType/> </element>

# RetrieveClientCert(retrieveClientCert)

Get the client certificate of the KMIP cluster.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
cluster | KeyProviderId | [in] KMIP cluster.

Return Value

Type | Description
--- | ---
xsd:string | The client certificate.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RetrieveClientCert" type="vim25:RetrieveClientCertRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RetrieveClientCertResponse"> <complexType> <sequence> <element name="returnval" type="xsd:string"/> </sequence> </complexType> </element>

# RetrieveClientCsr(retrieveClientCsr)

Get the generated client certificate signing request. If GenerateClientCsr is called previously, this will return the generated certificate signing request; otherwise return empty string.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
cluster | KeyProviderId | [in] KMIP cluster.

Return Value

Type | Description
--- | ---
xsd:string | The CSR generated previously, if any.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RetrieveClientCsr" type="vim25:RetrieveClientCsrRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RetrieveClientCsrResponse"> <complexType> <sequence> <element name="returnval" type="xsd:string"/> </sequence> </complexType> </element>

# RetrieveKmipServerCert(retrieveKmipServerCert)

Get the server certficate. In the case of error, an empty certificate string is returned.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
keyProvider | KeyProviderId | [in] KMIP cluster in which the server is placed or will be created.
server | KmipServerInfo | [in] KMIP server.

Return Value

Type | Description
--- | ---
CryptoManagerKmipServerCertInfo | Information about the server certificate.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RetrieveKmipServerCert" type="vim25:RetrieveKmipServerCertRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RetrieveKmipServerCertResponse"> <complexType> <sequence> <element name="returnval" type="vim25:CryptoManagerKmipServerCertInfo"/> </sequence> </complexType> </element>

# RetrieveKmipServersStatus_Task(retrieveKmipServersStatus)

Get the status of the KMIP servers.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
clusters* | KmipClusterInfo[] | [in] KMIP clusters and their servers.

*Need not be set

Return Value

Type | Description
--- | ---
ManagedObjectReference to a Task |

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

# RetrieveSelfSignedClientCert(retrieveSelfSignedClientCert)

Get the generated self signed client certificate. If GenerateSelfSignedClientCert is called previously, this will return the generated certificate; otherwise return empty string.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
cluster | KeyProviderId | [in] KMIP cluster.

Return Value

Type | Description
--- | ---
xsd:string | The self signed certificate generated previously, if any.

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RetrieveSelfSignedClientCert" type="vim25:RetrieveSelfSignedClientCertRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="RetrieveSelfSignedClientCertResponse"> <complexType> <sequence> <element name="returnval" type="xsd:string"/> </sequence> </complexType> </element>

# UpdateKmipServer(updateKmipServer)

Update a KMIP server.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
server | KmipServerSpec | [in] KMIP server connection information.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
InvalidArgument | in case the parameters are not valid, if a server with this clusterId and name is not registered
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UpdateKmipServer" type="vim25:UpdateKmipServerRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UpdateKmipServerResponse"> <complexType/> </element>

# UpdateKmsSignedCsrClientCert(updateKmsSignedCsrClientCert)

Set KMS server signed certificate as KMIP client certificate for the KMS cluster. This method should be called to update the certificate signed by KMS server from a CSR that is generated by calling GenerateClientCsr. If GenerateClientCsr is called more than once, the CSR that is generated last time should be used; otherwise the certificate will be rejected because the private key from last time won't match the public key in the certificate.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
cluster | KeyProviderId | [in] KMIP cluster.
certificate | xsd:string | [in] Client certificate.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UpdateKmsSignedCsrClientCert" type="vim25:UpdateKmsSignedCsrClientCertRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UpdateKmsSignedCsrClientCertResponse"> <complexType/> </element>

# UpdateSelfSignedClientCert(updateSelfSignedClientCert)

Set a self-signed certificate as KMIP client certificate for the KMS cluster. This method should be called to update the certificate which is generated by calling GenerateSelfSignedClientCert. If GenerateSelfSignedClientCert is called more than once, the self signed certificate that is generated last time should be used; otherwise the certificate will be rejected because the private key from last time won't match the public key in the certificate.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
cluster | KeyProviderId | [in] KMIP cluster.
certificate | xsd:string | [in] Client certificate.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UpdateSelfSignedClientCert" type="vim25:UpdateSelfSignedClientCertRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UpdateSelfSignedClientCertResponse"> <complexType/> </element>

# UploadClientCert(uploadClientCert)

Set a client certificate with private key for the KMIP cluster. The certificate and private key can be assigned by a KMS server and the certificate might be already trusted by the KMS server.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
cluster | KeyProviderId | [in] KMIP cluster.
certificate | xsd:string | [in] Client certificate.
privateKey | xsd:string | [in] Private key.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UploadClientCert" type="vim25:UploadClientCertRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UploadClientCertResponse"> <complexType/> </element>

# UploadKmipServerCert(uploadKmipServerCert)

Upload a server certficate.

Required Privileges
  Cryptographer.ManageKeyServers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerKmip used to make the method call.
cluster | KeyProviderId | [in] KMIP cluster.
certificate | xsd:string | [in] Server certificate in PEM encoding.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UploadKmipServerCert" type="vim25:UploadKmipServerCertRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="UploadKmipServerCertResponse"> <complexType/> </element>