Link Search Menu Expand Document

Introduction

In this section, you will learn how to make authorized requests to the RCL Stand Alone Certificate APIs or use the rclcerts applications by using an API Key. You must have an active subscription to the RCL Client for Let’s Encrypt Standard or Azure Marketplace application to register an API Key.

Register an API Key

  • Log in to the RCL Client for Let’s Encrypt Standard or Azure Marketplace application and go to the admin portal

  • Click on the ‘Subscription’ link in the the side menu

  • In the ‘Subscription’ page, click on the ‘API Key’ link in the top menu

  • In the ‘API Key’ page, click the ‘Register an API Key’ button

image

  • Then, click on ‘Generate an API Key’

image

  • An API Key will be generated for you to access the APIs

image

Using the API Key

  • You must place the API Key as a query string parameter ‘api-key’ in the API’s request URL. The following is an example of the use of the API Key :
https://rclapi.azure-api.net/v2/stand-alone/csrinfo?api-key=9a7056cc4a5b4ab7915fb4e2075534c

Uisng the API Key in rclcerts

  • You must add the API Key to the appsettings.json file
{
  "StandAloneCertificate": {
    "ApiBaseUrl": "https://rclapi.azure-api.net/v2/stand-alone",
    "ApiKey": "sdsi48850erkdfj488er0045kfhsgru4"
  }
}