Inline certificate configuration reference

This topic provides reference information for the gateway inline certificate configuration entry. For information about certificate configuration for Kubernetes environments, refer to Gateway Resource Configuration.

Configuration model

The following list outlines field hierarchy, language-specific data types, and requirements in an inline-certificate configuration entry. Click on a property name to view additional details, including default values.

  • Kind: string | must be "inline-certificate"
  • Name: string | no default
  • Namespace: string | no default EnterpriseInline Certificate - 图1Enterprise
  • Partition: string | no default EnterpriseInline Certificate - 图2Enterprise
  • Meta: map | no default
  • Certificate: string | no default
  • PrivateKey: string | no default

Complete configuration

When every field is defined, an inline-certificate configuration entry has the following form:

  1. Kind = "inline-certificate"
  2. Name = "<name of certificate>"
  3. Meta = {
  4. "<any key>" = "<any value>"
  5. }
  6. Certificate = "<public certificate>"
  7. PrivateKey = "<private key>"
  1. {
  2. "Kind": "inline-certificate",
  3. "Name": "<name of certificate>",
  4. "Meta": {
  5. "any key": "any value"
  6. }
  7. "Certificate": "<public certificate>",
  8. "PrivateKey": "<private key>"
  9. }

Specification

Kind

Specifies the type of configuration entry to implement.

Values

  • Default: none
  • This field is required.
  • Data type: string that must equal "inline-certificate"

Name

Specifies a name for the configuration entry. The name is metadata that you can use to reference the configuration entry when performing Consul operations, such as applying a configuration entry to a specific cluster.

Values

  • Default: none
  • This field is required.
  • Data type: string

Namespace EnterpriseInline Certificate - 图3Enterprise

Specifies the Enterprise namespace to apply to the configuration entry.

Values

  • Default: "default" in Enterprise
  • Data type: string

Partition EnterpriseInline Certificate - 图4Enterprise

Specifies the Enterprise admin partition to apply to the configuration entry.

Values

  • Default: "default" in Enterprise
  • Data type: string

Meta

Specifies an arbitrary set of key-value pairs to associate with the gateway.

Values

  • Default: none
  • Data type: map containing one or more keys and string values.

Certificate

Specifies the inline public certificate to use for TLS.

Values

  • Default: none
  • This field is required.
  • Data type: string value of the public certificate

PrivateKey

Specifies the inline private key to use for TLS.

Values

  • Default: none
  • This field is required.
  • Data type: string value of the private key