Enable X.509 Certificates in Bindings or Service Keys

The credential types of an SAP Build Process Automation instance refer to the authorization type for accessing APIs.

Prerequisites

You have created a service instance that includes X509 in its credential-types property.

Context

The available credential types are binding-secret, instance-secret, and x509.

Procedure

  1. Prepare a JSON object that specifies the list of credential types that you want to enable for the OAuth2 client that is provided through the service instance.

    The following example provides the x509 credential type for the service key or binding of the service instance with a certificate that is valid for 7 days:

    The code snippet provides the credential type and its details needed to create the binding.

  2. Create a binding or a service key for the service instance of SAP Build Process Automation and provide the JSON object.

    For more information, see Create a Service Key for the SAP Build Process Automation Instance and in the documentation for SAP Service Manager see Binding Service Instances to Cloud Foundry Applications.

Results

You can use the resulting OAuth2 client with credentials as provided by the service binding of the created service instance. For more information, see Using SAP Build Process Automation APIs.