Server Certificate
| Block name | Context | Label |
|---|---|---|
server_certificate | tls Block | optional |
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
| Name | Type | Default | Description |
|---|---|---|---|
private_key | string | - | Private part of the certificate in DER or PEM format. Mutually exclusive with |
private_key_file | string | - | Reference to a file containing the private part of the certificate file in DER or PEM format. Mutually exclusive with |
public_key | string | - | Public part of the certificate in DER or PEM format. Mutually exclusive with |
public_key_file | string | - | Reference to a file containing the public part of the certificate file in DER or PEM format. Mutually exclusive with |