Skip to content

Separate web server vhost cert (server_name/CA/cert) from FOG client-trust CA, scaffold Let's Encrypt support #1013

Description

@darksidemilk

Follow-up from #1012's vhost-customization warning work.

Today the web server vhost's server_name, SSL certificate, and CA are all
derived from the same FOG-generated CA (createSSLCA(),
lib/common/functions.sh) that fog-client also uses to trust the server. The
two customizations admins actually make to the vhost in practice are:

  1. A custom server_name (additional DNS names/aliases beyond the detected IPs)
  2. A custom CA/certificate for the public-facing web vhost (e.g. an internal
    CA, or eventually Let's Encrypt)

Proposal: store these as their own settings, independent of the
fog-client-trust CA and the Secure Boot signing key, so an admin can put a
real/Let's-Encrypt-issued certificate on the web vhost without touching (and
without breaking) the certificate fog-client uses to trust the server.

This is real scaffolding work (new settings, install-flow branching, likely a
renewal hook for Let's Encrypt) -- not a small fix, and deserves its own
design pass before implementation. Not blocking #1012.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions