You can import SSL certificates by running a workflow from the Configuration plug-in or by using the REST API.

About this task

You can import a trusted certificate from a file or a URL. For information about importing the vCenter Server SSL certificate by using the Orchestrator configuration interface, see Import the vCenter Server SSL Certificate.

Procedure

  1. Make a GET request at the URL of the Workflow service.

    Option

    Description

    Import trusted certificate from a file

    Imports a trusted certificate from a file

    Import trusted certificate from URL

    Imports a trusted certificate from a URL address

    To import a trusted certificate from a file, make the following GET request:

    GET https://{vcoHost}:{port}/vco/api/workflows?conditions=name=Import
    				trusted certificate from a file
  2. Retrieve the definition of the workflow by making a GET request at the URL of the definition.

    To retrieve the definition of the Import trusted certificate from a file workflow, make the following GET request:

    GET https://{vcoHost}:{port}/vco/api/workflows/93a7bb21-0255-4750-9293-2437abe9d2e5
  3. Make a POST request at the URL that holds the execution objects of the workflow.

    For the Import trusted certificate from a file workflow, make the following POST request:

    POST https://{vcoHost}:{port}/vco/api/workflows/93a7bb21-0255-4750-9293-2437abe9d2e5/executions
  4. Provide values for the input parameters of the workflow in an execution-context element of the request body.

    Parameter

    Description

    cer

    The CER file from which you want to import the SSL certificate.

    This parameter is applicable for the Import trusted certificate from a file workflow.

    url

    The URL from which you want to import the SSL certificate. For non-HTPS services, the supported format is IP_address_or_DNS_name:port.

    This parameter is applicable for the Import trusted certificate from URL workflow.