Skip to content

Infrastructure code and configuration files relted to the internal PKI at Diamond Drake Ventures

Notifications You must be signed in to change notification settings

DiamondDrakeVentures/pki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PKI

Infrastructure code and configuration files related to the internal Public Key Infrastructure (PKI) at Diamond Drake Ventures.

Production Readiness

This repo is production ready in the sense that we use the configs and tools in this repo to deploy our production environment. Use them at your own risk.

Bootstrapping

curl -fsSL "https://raw.githubusercontent.com/DiamondDrakeVentures/pki/refs/heads/main/bootstrap/bootstrap.sh" | sudo bash

By default, the bootstrap script uses the main DDV internal CA. To use a different CA (e.g. local deployment), supply the URL (--ca-url) and fingerprint (--ca-fingerprint).

curl -fsSLO "https://raw.githubusercontent.com/DiamondDrakeVentures/pki/refs/heads/main/bootstrap/bootstrap.sh"
sudo ./bootstrap.sh --ca-url <URL> --ca-fingerprint <fingerprint>

It is also possible to supply a Healthchecks.io API key. When provided, scheduled tasks (e.g. SSH host certificate renewal) will ping using the key.

curl -fsSLO "https://raw.githubusercontent.com/DiamondDrakeVentures/pki/refs/heads/main/bootstrap/bootstrap.sh"
sudo ./bootstrap.sh --hc-key <API key>

Updating

To remain up-to-date with this repo, each components provide a script wherever possible.

Updating SSH

curl -fsSLO "https://raw.githubusercontent.com/DiamondDrakeVentures/pki/refs/heads/main/ssh/update.sh"
sudo ./update.sh --all

It is possible to update only the server configuration or the renewer script.

curl -fsSLO "https://raw.githubusercontent.com/DiamondDrakeVentures/pki/refs/heads/main/ssh/update.sh"
# Update just the server config
sudo ./update.sh --server
# Update just the renewer
sudo ./update.sh --renewer

About

Infrastructure code and configuration files relted to the internal PKI at Diamond Drake Ventures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages