Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luzifer-docker / ca-certificates

This repository builds a minimal container image containing the Mozilla-managed CA certificate bundle for use in scratch-based images.

The published image is available as ghcr.io/luzifer-docker/ca-certificates and can either be used directly as a base image or copied into another image as part of a multi-stage build.

Purpose

Use this image when you need a standard CA trust store inside a scratch image. It provides the certificate bundle and compatibility symlinks in common OpenSSL locations.

Contents

The published image contains:

  • /etc/ssl/certs/ca-certificates.crt
  • /etc/ssl/cert.pem as a symlink to the certificate bundle
  • /etc/ssl1.1 symlinks for OpenSSL 1.1 compatibility

Build

The bundle is generated from Mozilla NSS certdata.txt using curl's mk-ca-bundle.pl script.

The build assembles the required tooling in an intermediate stage, generates the certificate bundle, installs the resulting files into a root filesystem, and publishes a final FROM scratch image containing only those prepared files.

Changes to Dockerfile on develop trigger tag creation based on NSS_VERSION. CI then builds and publishes the image to GitHub Container Registry. Dependency updates for the build inputs are managed with Renovate.

Usage

Use the image directly as your base when you only need the published certificate bundle:

FROM ghcr.io/luzifer-docker/ca-certificates:3.123.0

If you want to fold the certificates into another final image, copying from it in a multi-stage build remains a valid option:

FROM scratch
COPY --from=ghcr.io/luzifer-docker/ca-certificates:3.123.0 / /

Both approaches result in the same certificate files being present in the image. Replace the tag with the release you want to consume.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages