ACME with Kong storagev2.0+

Configure the ACME plugin with Kong Gateway as the storage backend.

Note: This option is not supported in Konnect or DB-less mode.

Prerequisites

  • A public IP and a resolvable DNS

  • Kong Gateway accepts proxy traffic on port 80

Environment variables

  • EMAIL: The account identifier.

  • KEY_ID: The kid of a Key.

  • KEY_SET: The name of a Key Set to associate the Key ID with.

  • DOMAIN: An array of strings representing hosts.

Set up the plugin

Add this section to your kong.yaml configuration file:

kong.yaml
_format_version: "3.0"
plugins:
  - name: acme
    config:
      account_email: ${{ env "DECK_EMAIL" }}
      account_key:
        key_id: ${{ env "DECK_KEY_ID" }}
        key_set: ${{ env "DECK_KEY_SET" }}
      domains:
      - ${{ env "DECK_DOMAIN" }}
      tos_accepted: true
      storage: kong

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!