DigiCert revokes three ECC intermediates from RapidSSL, Thawte and GeoTrust on Wednesday 18-11-2026 at 19:00 CET. Certificates issued from them must be reissued before then.Read more →

FairSSL ACME

Linux & Kubernetes setup

An ACME client on the Linux server, usually Lego, fetches the certificate from FairSSL and renews it from a daily cron job. cert-manager handles Kubernetes.

How it works

  1. Choose a client Lego is the recommendation for most Linux servers and CI/CD. Certbot and acme.sh work too; acme.sh does not support ARI.
  2. Issue the certificate Run lego --server https://fairssl.dk/acme with --eab and the EAB keys from the control panel.
  3. Renew and reload the web server A daily cron job runs lego renew with --renew-hook, which reloads, for example, Apache. With ARI, FairSSL decides when to renew. Certbot sets up its own systemd timer.

← All guides

FairSSL ACME works with all standard Linux ACME clients. Lego is our recommendation for most Linux servers and CI/CD, and cert-manager handles Kubernetes clusters.

Supported versions

The wizard in the control panel is written for these versions. If you run an older version than the one listed, ask us before you order.

Linux

nginxVersionsThe guide sets no version limitRuns onLinuxACME clientlego 5.0.4+
ApacheVersionsThe guide sets no version limitRuns onLinuxACME clientlego 5.0.4+
HAProxyVersionsThe guide sets no version limitRuns onLinuxACME clientlego 5.0.4+
TraefikVersionsWith the file providerRuns onLinuxACME clientlego 5.0.4+
PostfixVersionsThe guide sets no version limitRuns onLinuxACME clientlego 5.0.4+
CaddyVersionsThe guide sets no version limitRuns onLinuxACME clientCaddy’s built-in ACME with EAB
Other Linux serviceVersionsThe guide sets no version limitRuns onLinuxACME clientlego 5.0.4+

macOS

macOSVersionsThe guide sets no version limitRuns onmacOSACME clientlego 5.0.4+Guide →

Supported platforms

Apache

Debian, Ubuntu, RHEL, CentOS

Lego or Certbot with automatic vhost configuration. mod_ssl is reloaded on renewal.

Nginx

Debian, Ubuntu, Alpine, RHEL

Automatic certificate installation and reload. Works with Lego, Certbot and acme.sh.

HAProxy

Load Balancer / Ingress

Certificates issued via DNS-01 (no port 80 required) and deployed as PEM files to HAProxy.

Kubernetes →

cert-manager

Declarative certificate management in the cluster. ACME Issuer with EAB points directly to FairSSL.

Docker

Traefik, Nginx Proxy Manager

Traefik has built-in ACME. Configure with FairSSL directory URL, EAB and DNS challenge.

Generic Load Balancer

F5, NetScaler, Kemp

Lego or acme.sh issues certificates via DNS-01. Deploy via script or API to the load balancer.

macOS →

Intel and Apple Silicon

Automate certificates on macOS with Lego and a LaunchDaemon. Works on both Intel and Apple Silicon. Use deploy-hook to sync the certificate to any service.

All Linux guides →

Recommended client: Lego

Lego is a Go-based ACME client that works on all platforms. FairSSL sponsors the project and collaborates directly with its developers. Lego is our recommended client for Linux and CI/CD pipelines.

Why Lego?

  • ✓ Compiled Go binary: no dependencies
  • ✓ Supports ARI (smart renewal)
  • ✓ Supports EAB (FairSSL account binding)
  • ✓ 100+ DNS providers for DNS-01
  • ✓ Cross-platform (Linux, macOS, Windows)

Alternatives

  • ✓ Certbot: the most well-known choice, Python-based
  • ✓ acme.sh: pure shell script, no root required
  • ✓ Caddy: web server with built-in ACME
  • ✓ Traefik: reverse proxy with ACME

Examples

Lego: Issue certificate (recommended)

# Issue certificate with Lego and FairSSL ACME

EAB_KID="dhgbKR8K73PgqAxIij6CDg" \
EAB_HMAC="QAx4jKmABqeYCXGZ1H7-eqG2qkPCtflHo5r51TWpebs" \
lego --server https://fairssl.dk/acme \
     --email info@example.com \
     --eab --kid "$EAB_KID" --hmac "$EAB_HMAC" \
     --domains "example.com" --domains "www.example.com" \
     --accept-tos --dns manual run

Lego: Automatic renewal via cron

# Install as a daily cron job. Lego supports ARI and asks the ACME server daily whether the certificate should be renewed.

32 04 * * * /usr/local/bin/lego --server https://fairssl.dk/acme \
     --domains "example.com" --domains "www.example.com" \
     --email info@example.com \
     --accept-tos --dns manual renew --days 15 --renew-hook "/usr/local/bin/reload-apache.sh"

Random minute and hour prevents all clients from renewing at the same time. With ARI, Lego checks daily whether the CA recommends early renewal. The --days 15 flag is a fallback that forces renewal when 15 days or less remain.

Certbot

# Certbot with FairSSL ACME server

certbot certonly --server https://fairssl.dk/acme \
    --manual --preferred-challenges dns \
    --eab-kid dhgbKR8K73PgqAxIij6CDg \
    --eab-hmac QAx4jKmABqeYCXGZ1H7-eqG2qkPCtflHo5r51TWpebs \
    -d example.com -d www.example.com

Certbot automatically sets up renewal via systemd timer.

acme.sh

# acme.sh: does NOT support ARI

# Register account
acme.sh --register-account --server https://fairssl.dk/acme \
    --eab-kid dhgbKR8K73PgqAxIij6CDg \
    --eab-hmac QAx4jKmABqeYCXGZ1H7-eqG2qkPCtflHo5r51TWpebs

# Issue certificate (--days 30 = renew every 30 days)
acme.sh --issue --server https://fairssl.dk/acme \
    --dns dns_manual -d example.com -d www.example.com --days 30

Note: acme.sh does not support ARI. The --days 30 parameter requests a new certificate every 30 days, not when there are 30 days remaining.

Kubernetes cert-manager

<a href="https://cert-manager.io" class="text-secondary hover:underline font-semibold" target="_blank" rel="noopener">cert-manager</a> is the standard for certificate management in Kubernetes. It supports ACME with EAB and can be configured to point at the FairSSL ACME server.

Setup

# Store the EAB HMAC key as a secret (namespace=cert-manager for ClusterIssuer)

kubectl create secret generic fairssl-eab-secret \
  --from-literal=hmac-key=QAx4jKmABqeYCXGZ1H7-eqG2qkPCtflHo5r51TWpebs \
  -n cert-manager

# Create ClusterIssuer

apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: fairssl-acme
spec:
  acme:
    server: https://fairssl.dk/acme
    externalAccountBinding:
      keyID: dhgbKR8K73PgqAxIij6CDg
      keySecretRef:
        name: fairssl-eab-secret
        key: hmac-key
...

We use ClusterIssuer (rather than Issuer) so it is available across all namespaces. The EAB secret must be in the cert-manager namespace for the ClusterIssuer to read it. After kubectl describe clusterissuer the ACME account should show as registered.

The two usual validation paths rarely fit a production web server

HTTP-01 needs port 80 open inbound to that exact server, with no redirect to HTTPS on the way. DNS-01 solves that, but the ordinary setup needs an API key for the DNS provider, and that key then sits on the web server with write access to the whole zone.

What the generated setup does

The wizard writes a Lego command with FairSSL as the ACME server, your EAB keys, the domains and a hook that reloads the service after a renewal. The same command goes into cron or a systemd timer and runs daily from then on.

  • Registers the account against the FairSSL ACME server with EAB.
  • Fetches the certificate, the key and the chain as PEM files.
  • Calls a renew hook that reloads nginx or Apache.
  • Runs daily and renews when ARI opens the renewal window.

Where the certificate ends up

As PEM files in the path you give Lego. The nginx or Apache configuration points at those paths and does not change on a renewal; the files are written to the same place every time, and the hook reloads the service so the running process reads them.

What to know in advance

Lego is the client we generate the setup for, and the one we sponsor. Certbot and acme.sh work against the same directory URL, but acme.sh has no ARI support: its days parameter is a fixed interval between issuances, not a renewal window. A service that is not reloaded after the renewal keeps running the old certificate even though the files on disk are new.

Guides for this platform

SSL certificates on many servers and appliances

A publicly trusted SSL certificate can be valid for at most 199 days now, 99 days by 15-03-2027 and 46 days by 15-03-2029. Each certificate then has to be replaced at least twice a year now and at least eight times a year from 2029, on every server, firewall and load balancer that uses it. sslbrain from FairSSL runs as an appliance in your own network and renews and installs the certificates from one place, including on devices without an agent.

How sslbrain renews and installs certificates on Linux servers with Nginx and Apache(opens sslbrain.com in a new tab)

Questions about Linux setup

Find answers to the most common questions about SSL certificates and FairSSL.

Yes. Certbot supports any ACME-compatible server. Specify --server https://fairssl.dk/acme and add EAB credentials on first run. After that, renewal works automatically via systemd timer. That said, we recommend Lego over Certbot for most Linux setups: a single Go binary with no Python dependencies, wider DNS provider coverage, and ARI support. FairSSL sponsors Lego.
Yes. Traefik has built-in ACME support and can be configured with FairSSL as CA. For other setups you can run Lego or Certbot in a sidecar container or use cert-manager in Kubernetes.
Use DNS-01 challenge with FairSSL AutoDNS. That way the ACME client does not need access to port 80: the proxy is irrelevant for validation. Alternatively you can route .well-known/acme-challenge/ from the proxy to the client.

Ready for automated SSL on Linux?

Create a free account and order your first certificate. A DV certificate is issued in under 2 minutes.