Reference

certificates feature

What it does

TLS certificates at /var/lib/acme/certs/NAME, with a placeholder until a real one is installed and optional renewal with uacme.

Use it

Import it from (vessel system features certificates). This part of a system configuration uses it:

Example: feature-certificates-example

(import (vessel system)
        (vessel system features nginx)
        (vessel system features certificates))

;; Let's Encrypt certificates through nginx's HTTP challenge, renewed by
;; cron.
(system-configuration
  features:
    (append
      (list (nginx-feature)
            (certificates-feature challenge: 'http-01
                                          email: "[email protected]")
            (simple-feature 'site certificates-feature
              (list (certificate-request name: "example.org"
                                         alt-names: '("www.example.org")))))
      %server-features))

Verified

A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.

Options

Pass these keyword fields directly to the feature type. The optional name: keyword sets the instance name; a copy keeps it unless changed.

Option

Default

Type

Description

challenge

#f

not available

not available

hook

#f

not available

not available

schedule

"17 3 * * *"

not available

not available

directory-url

#f

not available

not available

email

#f

not available

not available

staging

#f

not available

not available

What it adds

Its declared extensions target these feature types:

What it receives

  • certificate-request: A certificate for a name and its alternative names.

Used in

Created with Sigil