Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Certificate Order - DNS Domain Validation sample for Cloudflare

Prerequisites

  1. An instance of IBM Cloud Certificate Manager.

Configuration

IBM Cloud Function action

  1. Create a new IBM Cloud Function action

    • In IBM Cloud Functions, select Actions from the sidebar
    • Click on Create
    • Follow the on-screen instructions
  2. Deploy the sample

    Select Code from the sidebar, and paste the contents of the main.js file of the sample

  3. Bind parameters to the action

    Select Parameters from the sidebar, and add the following:

    1. allowedCertificateManagerCRNs - a JSON Object containing a list of Certificate Manager instances that are allowed to invoke this function. Apply it in order to protect your cloud function from being invoked by unauthorized clients.
      E.g. {"crn:v1:bluemix:public:cloudcerts:us-south:a....":true,"crn:v1:bluemix:public:cloudcerts:eu-de:a...":true}

      • Find your Certificate Manager instance CRN from the Settings sidebar item
      • Or from CLI: ibmcloud resource service-instance [INSTANCE NAME], grab the ID value
    2. cmRegion - your Certificate Manager service instance region value. Can be one of: us-south, eu-gb, eu-de, jp-tok
      E.g. "us-south"

    3. cloudflareEmail - email address associated with your account

    4. cloudflareApiKey - API key generated on the "My Account" page

  4. In the Endpoints sidebar, tick the Enable as Web Action checkbox