# 使用 Homebrew, apk, MacPorts, Nix, pacman, scoop 安装 cfssl

查看 cfssl 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cfssl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cfssl
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cfssl
```

  证据: MacPorts ports tree: security/cfssl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add cfssl
```

  证据: Alpine Linux edge package indexes: cfssl from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#cfssl
```

  证据: nixpkgs package indexes: pkgs/by-name/cf/cfssl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cfssl
```

  证据: Arch Linux sync databases: cfssl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install extras/cfssl
```

  证据: Scoop official bucket manifest trees: bucket/cfssl.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cfssl
- **软件包管理器:** Homebrew
- **版本:** 1.6.5
- **来源摘要:** CloudFlare's PKI toolkit
- **主页:** <https://cfssl.org/>
- **仓库:** <https://github.com/cloudflare/cfssl>
- **最后更新:** 2026-07-27T19:20:58+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cfssl (别名)
- cfssl-bundle (别名)
- cfssl-certinfo (别名)
- cfssl-newkey (别名)
- cfssl-scan (别名)
- cfssljson (别名)
- multirootca (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.6.5
## 项目历史与用法

CFSSL is Cloudflare's PKI and TLS toolkit. The official README describes it as both a command-line tool and an HTTP API server for signing, verifying, bundling, scanning, and serving certificate-authority workflows.

### 项目历史

Cloudflare introduced CFSSL in July 2014 as an open-source toolkit for TLS and SSL, saying it was used internally for certificate-chain bundling and internal certificate-authority infrastructure. The GitHub repository was created the same month under Cloudflare's organization.

The project is written in Go and ships multiple utilities, including `cfssl`, `cfssljson`, `cfssl-bundle`, `cfssl-certinfo`, `cfssl-newkey`, `cfssl-scan`, `mkbundle`, and `multirootca`. The documentation covers CLI operation, JSON configuration, authentication, an HTTP API, certificate bundling, signing, OCSP, and CA serving.

### 采用历史

CFSSL became a durable package because it solves operational PKI tasks that teams need outside a browser or a single web server: generating CSRs and keys, signing certificates, bundling chains, scanning hosts, and exposing CA operations through an API.

The package metadata in this batch shows CFSSL packaged across Homebrew, Alpine, MacPorts, Nix, Arch, and Scoop. Official installation also supports `go install` and prebuilt GitHub release binaries.

### 使用方式

The `cfssl` command supports subcommands such as sign, bundle, genkey, gencert, serve, version, selfsign, and print-defaults. The README documents default CA credential filenames `ca.pem` and `ca_key.pem` for signing and serving.

The configuration file is a JSON dictionary for signing profiles, OCSP, authentication, and remote servers, but the docs present it as an argument such as `-config config` rather than a fixed path. For that reason, the config-file location is null while the default CA credential filenames are recorded.

### 为什么软件包爱好者会关心

CFSSL is package-nerd significant because it turns PKI operations that are often hidden inside bespoke scripts into a set of installable Unix-style commands and a documented API server.

It is also a classic Go security-tool package: one upstream repository builds several related executables, package managers expose the main toolkit, and operators can choose between system packages, Homebrew, Scoop, prebuilt release binaries, or `go install`.

### 时间线

- 2014: Cloudflare introduces CFSSL as an open-source PKI toolkit and creates the GitHub repository.
- 2020: v1.5.0 is published on GitHub releases.
- 2021: v1.6.0 and v1.6.1 are published on GitHub releases.
- 2024: v1.6.5 is published on GitHub releases.
- 2026: The README documents Go 1.20+ as the build requirement and continues to describe CFSSL as Cloudflare's PKI/TLS toolkit.

### Related projects

- cfssl_trust is referenced by the README as the source for bundle files and platform metadata.
- multirootca is shipped by the same repository as a certificate-authority server using multiple signing keys.
- Go is the implementation language and installation path documented by the project.

### 来源

- <https://api.github.com/repos/cloudflare/cfssl>
- <https://github.com/cloudflare/cfssl>
- <https://cfssl.org/>
- <https://github.com/cloudflare/cfssl#readme>
- <https://github.com/cloudflare/cfssl/tree/master/doc>
- <https://formulae.brew.sh/api/formula/cfssl.json>
- <https://api.github.com/repos/cloudflare/cfssl/releases>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: ca.pem, ca_key.pem
## 其他软件包管理器记录

- Nix - cfssl: normalized package name match | nixpkgs package indexes: pkgs/by-name/cf/cfssl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cfssl - 1.6.5-r16: normalized package name match | Alpine Linux edge package indexes: cfssl from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Cloudflare PKI and TLS toolkit | https://cfssl.org/
- pacman - cfssl - 1.6.5-2: normalized package name match | Arch Linux sync databases: cfssl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | CloudFlare PKI and TLS toolkit | https://cfssl.org/
- MacPorts - cfssl: normalized package name match | MacPorts ports tree: security/cfssl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/cfssl: normalized package name match | Scoop official bucket manifest trees: bucket/cfssl.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/cfssl.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cfssl.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
