Skip to Content

Create Hyperledger Fabric Service Keys

0 %
Create Hyperledger Fabric Service Keys

Create Hyperledger Fabric Service Keys

Learn how to create Hyperledger Fabric service keys on SAP Cloud Platform

You will learn

  • How to create and distribute Hyperledger Fabric service keys on SAP Cloud Platform

Step 1: Understand use of service keys

In the usual development process, an SAP Cloud Platform based application is deployed and bound to the Hyperledger Fabric channel. Part of the binding information is the credentials required by the application to access the channel via (micro service) APIs. This information is stored securely within the SAP Cloud Platform and only available to the bound application via its environment.

However, if you need to test the APIs from the browser, then the security credentials must be known to the browser and therefore to the user.

When a service key is created, it consists of the following elements:

  "type": "hyperledger-fabric",
  "channelId": "example-channel-id",
  "serviceUrl": "",
  "documentationUrl": "",
  "oAuth": {
    "clientId": "example-clientID",
    "clientSecret": "example-client-secret",
    "url": "",
    "identityZone": "global-account"

It is the clientID and clientSecret that are particularly relevant to you when testing your recently deployed chaincode.

Log on to answer question
Step 2: Create service key

Once on your channel dashboard, enter a service key name (an internal reference) and click Create Key:

Image depicting service keys

The service key is now created and the details are exposed. Here you can choose to copy the whole key to your clipboard, or use the shortcuts for clientID and clientSecret:

Image depicting service keys
Which of the following two options are default elements on a Hyperledger Fabric service key on SAP Cloud Platform?

Next Steps

Back to top