# CertKeeper

CertKeeper is a self-hosted infrastructure app. Issues Let's Encrypt certificates through Cloudflare DNS validation and installs them on your hosts and appliances over SSH, renewing and redeploying them automatically. It is open source and self-hosted, installable on TrueNAS.

Canonical page: https://ourlocalhost.com/app/9199/certkeeper

## Description

Issues Let's Encrypt certificates through Cloudflare DNS validation and installs them on your hosts and appliances over SSH, renewing and redeploying them automatically.

## Platform availability

Available on 1 of 10 platforms: TrueNAS.

## Health score

45/100 (Fair), based on 3 of 4 factors.
- Maintained: 84 (last commit 7 days ago)
- Popular: 0 (0 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)

## Links

- TrueNAS: https://apps.truenas.com/catalog/certkeeper/
- GitHub: https://github.com/MJWaters1985/CertKeeper

## Common questions

### Does CertKeeper need an ACME client or the Cloudflare token installed on each of my hosts?

No. All issuing happens inside CertKeeper via its built-in ACME client, and hosts never see the Cloudflare token. CertKeeper connects to hosts over SSH to deploy certificates.

### How does CertKeeper connect to hosts, and can it use SSH keys instead of passwords?

It uses OpenSSH with its own key, created on first start, and optionally a stored password per host. Keys are tried first, a host's key is trusted on first connection and verified afterward, and connections are reused for a minute.

### How are the Cloudflare API token, certificate keys, and host passwords stored?

All secrets—the Cloudflare token, the ACME account key, certificate private keys, and host passwords—are stored encrypted in an AES-GCM file.

### How often does CertKeeper renew and redeploy certificates, and when does it decide a renewal is needed?

A rotation pass runs every 12 hours (or on demand via Run rotation pass). A certificate is issued or renewed if it has never been issued, is within 30 days of expiry, has expired, or its list of names changed. Deployments are only re-pushed when the certificate the service actually serves differs.

### Is CertKeeper only available as a TrueNAS app?

Yes, it is distributed as a TrueNAS app from the app catalog, with its image published as ghcr.io/mjwaters1985/certkeeper. It supports deploying to many other targets like Proxmox VE, UniFi OS, OPNsense, Pi-hole, nginx, and Apache over SSH.

### How does sudo work when CertKeeper runs commands on hosts?

It first tries sudo -n (non-interactive). If that fails, it runs sudo -k -S with the password on the first line of input, so the password never reaches the shell as a command.

---
Source: Our Local Host (https://ourlocalhost.com/app/9199/certkeeper), the self-hosted and open-source app directory.
