Couper Documentation

edge

Server Certificate

Block nameContextLabel
server_certificatetls Blockoptional

A configured server_certificate pub/key pair will be loaded once at startup and served on the related server port configured with the hosts attribute.

Example

server_certificate "api.example.com" { #optional label
  public_key = "base64_DER" # kube secret ...
  # OR
  public_key_file = "couperServer.crt" # PEM

  private_key = "base64_DER"
  # OR
  private_key_file = "couperServer.key" # PEM
}

Attributes

NameTypeDefaultDescription
private_key
string
-

Private part of the certificate in DER or PEM format. Mutually exclusive with private_key_file.

private_key_file
string
-

Reference to a file containing the private part of the certificate file in DER or PEM format. Mutually exclusive with private_key.

public_key
string
-

Public part of the certificate in DER or PEM format. Mutually exclusive with public_key_file.

public_key_file
string
-

Reference to a file containing the public part of the certificate file in DER or PEM format. Mutually exclusive with public_key.