About Cfssl
CFSSL is Cloudflare's PKI and TLS toolkit, written in Go. It is both a command-line tool and an HTTP API server for signing, verifying and bundling TLS certificates. Cloudflare introduced it as open source in July 2014 after using it internally for certificate chains and its own certificate authority.
The toolkit has several programs: cfssl is the main command-line tool, multirootca is a certificate authority server that can use multiple signing keys, mkbundle builds certificate pool bundles, and cfssljson writes the JSON output of the others to disk as certificates, keys, CSRs and bundles. The cfssl command covers sign, bundle, genkey, gencert, serve, selfsign and more.
Building needs a working Go 1.27 or newer installation, and the README notes that cfssl requires cgo. Prebuilt binaries are available as an alternative, or the tools can be installed with go install. The README warns that Go from the official repositories of some Linux distributions, RHEL-based ones in particular, will not work.
Key features
- Command line tool and HTTP API server
- Multi-key certificate authority server
- Writes certificates and keys to disk from JSON output
- Generates keys, certificates and self-signed certs
- Bundle flavors for different chain preferences
- Packages for building custom TLS PKI tools
Good fit for
- Running an internal certificate authority
- Bundling certificate chains
- Scripted certificate issuance
Cfssl: questions and answers
- What is Cfssl used for?
- Cfssl is Cloudflare's PKI and TLS toolkit: a Go command-line tool and HTTP API server for signing, verifying and bundling TLS certificates. It is a good fit for running an internal certificate authority, bundling certificate chains and scripted certificate issuance.
- Is Cfssl open source?
- Yes. Cfssl is open source under the BSD-2-Clause licence. Its source code is on GitHub at cloudflare/cfssl and is written mainly in Go.
- Is Cfssl free?
- Yes. Cfssl is open source, so the software itself is free to use.
- Can I self-host Cfssl?
- Yes. Cfssl can be self-hosted on your own server or infrastructure.
- What is Cfssl an alternative to?
- Cfssl is an open-source alternative to DigiCert. Other open-source alternatives to DigiCert include step-ca, Lego and acme.sh.
- Is Cfssl actively maintained?
- Yes. The most recent commit to Cfssl was on 22 October 2026, and the latest release is v1.7.1, published on 6 October 2026. The project has 9.5k stars on GitHub, with 23 added in the last 30 days.
Open-source alternatives to Cfssl
See all
step-ca
Security
🛡️ A private certificate authority (X.509 & SSH) & ACME server for secure automated certi
Apache-2.0vs Entrust★ 9.1k
Lego
Security
Let's Encrypt/ACME client and library written in Go
MITvs DigiCert★ 10k
acme.sh
Security
A pure Unix shell script ACME client for SSL / TLS certificate automation
GPL-3.0vs DigiCert★ 48k

DigiCert