Multi-CA ACME, IP Certs & Custom Certificates
For public domains, tls auto (the default) gets and renews certificates over RFC 8555 ACME HTTP-01.
Supported Certificate Authorities
Pick a CA with ssl_provider (aliases: acme_provider, ca, cert_issuer) or --ssl-provider:
| Provider Keyword | Certificate Authority | EAB Requirement |
|---|---|---|
letsencrypt (le) | Let's Encrypt (Production) | None |
letsencrypt_staging | Let's Encrypt (Staging) | None |
zerossl | ZeroSSL | Automatic when email is set, or explicit eab <kid> <hmac_key> |
google (gts) | Google Trust Services | Requires eab <kid> <hmac_key> |
ssl.com (sslcom, ssl.com-rsa) | SSL.com (ECC or RSA) | Requires eab <kid> <hmac_key> |
litessl (trustasia) | LiteSSL by TrustAsia | None for standard DV |
buypass | Buypass Go SSL | None |
local | Local Two-Tier PKI | Local CA (Neuro-sama Headquarters Root CA) |
https://... | Any RFC 8555 ACME v2 CA | Optional eab <kid> <hmac_key> (e.g. step-ca, Pebble) |
Provider Examples
ZeroSSL with Automatic EAB
{
email ops@example.com
ssl_provider zerossl
}
example.com {
reverse_proxy http://localhost:3000
verify 3
}Google Trust Services / SSL.com (Explicit EAB)
Both padded base64 and unpadded URL-safe base64 HMAC keys are accepted. eab_hmac_key is redacted in Admin API output.
{
email ops@example.com
ssl_provider google
eab YOUR_EAB_KEY_ID YOUR_EAB_HMAC_KEY
}Custom ACME Directory URL
{
email ops@example.com
ssl_provider https://ca.internal.corp/acme/acme/directory
}ACME certificates are cached under <cert_dir> keyed by provider (for example certs/acme-zerossl-fullchain.pem, while Let's Encrypt uses certs/acme-fullchain.pem), so switching ssl_provider requests from the new CA instead of reusing the old one.
RFC 8738 IP Certificates (SSH & Minecraft Verify Portal)
When SSH or Minecraft protection is active without a custom verify_url, Gymbag serves the HTTPS verification portal on the server's detected IP address (default port 8443).
In auto mode (tls auto with a non-local provider), Gymbag requests an RFC 8738 ACME IP HTTP-01 certificate for the public server IP—automatically requesting the CA's shortlived profile if the ACME directory advertises one—and caches it at certs/verify-acme-fullchain.pem (verify-acme-<provider>-fullchain.pem for other CAs). If port 80 is unavailable or the CA rejects IP identifiers, Gymbag falls back to its Local CA (certs/verify-local-fullchain.pem) or a self-signed IP cert (certs/verify-selfsigned.pem).
You can also assign a dedicated certificate pair to the verification portal:
{
verify_url https://verify.example.com:8443
verify_server {
tls /etc/ssl/verify-fullchain.pem /etc/ssl/verify-privkey.pem
}
}Bring Your Own Keys & Certificates
- ACME account key:
account_key /etc/gymbag/account.pem(ECDSA P-256/P-384 or RSA) - CSR private key:
ssl_key /etc/gymbag/domain.key - PEM cert & key (global or per-site SNI):
tls /etc/ssl/corp-fullchain.pem /etc/ssl/corp-privkey.pem - Encrypted private key passphrase:
key_password super-secret-passphrase(orGYMBAG_KEY_PASSWORD)
{
key_password super-secret-passphrase
}
corp.example.com {
reverse_proxy http://localhost:8080
tls /etc/ssl/corp-fullchain.pem /etc/ssl/corp-privkey.pem
verify 1
}Background Renewal
A background loop checks certificates every renew_interval seconds (default 43200, i.e. 12 hours). Any certificate within renew_within_days of expiry (default 30 days), or replaced on disk, is renewed or reloaded and swapped atomically via atomic.Pointer so open HTTP streams and WebSocket connections stay connected.
