# 使用 Homebrew, apk, MacPorts, Nix, scoop 安装 certstrap

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

## 安装

```sh
sudo av install brew:certstrap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install certstrap
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install certstrap
```

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

### Linux

- apk (92%):

```sh
sudo apk add certstrap
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#certstrap
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/certstrap
```

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

## 软件包事实

- **软件包键:** brew:certstrap
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/certstrap>
- **版本:** 1.3.0
- **来源摘要:** Tools to bootstrap CAs, certificate requests, and signed certificates
- **主页:** <https://github.com/square/certstrap>
- **仓库:** <https://github.com/square/certstrap>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/square/certstrap/archive/refs/tags/v1.3.0.tar.gz>
- **最后更新:** 2026-07-27T19:20:58+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- certstrap (cli)
- certstrap (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.3.0
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/square/certstrap
- 检测到的最新版本: v1.3.0 (当前)
## 项目历史与用法

certstrap is Square's Go-based CLI for bootstrapping certificate authorities, certificate requests, and signed certificates. Its README describes it as a simple certificate manager adapted from etcd-ca and intended as a friendlier alternative to hand-writing OpenSSL commands and config files.

### 项目历史

The public repository was created in 2015 and the release history includes v1.0.0/v1.0.1 in 2016, later 1.1 and 1.2 releases, and v1.3.0 in 2022. The project documents building from source with Go and contributing through the upstream repository.

### 采用历史

certstrap became a packaged PKI helper across multiple ecosystems. The supplied package facts list APK, Homebrew, MacPorts, Nix, and Scoop packages, matching its role as a small standalone executable for development and internal PKI workflows.

### 使用方式

Typical certstrap usage starts by initializing a CA, then generating identity keys and CSRs, and finally signing certificate requests. By default, generated keys, CSRs, certificates, and CRLs are placed in the depot directory, documented as out/.

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

certstrap matters in package catalogs because it turns the brittle OpenSSL local-CA bootstrap routine into a reproducible CLI. It is especially visible to developers who need throwaway or internal TLS material without adopting a larger PKI system.

### 时间线

- 2015: Public GitHub repository created.
- 2016: v1.0.0 and v1.0.1 releases published.
- 2017: v1.1.x releases published.
- 2019: v1.2.0 released.
- 2022: v1.3.0 released.

### Related projects

- The README says certstrap was adapted from etcd-ca and explicitly frames itself as an alternative to direct OpenSSL configuration.

### 来源

- <https://api.github.com/repos/square/certstrap>
- <https://github.com/square/certstrap>
- <https://github.com/square/certstrap#readme>
- <https://formulae.brew.sh/api/formula/certstrap.json>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** certstrap
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - certstrap: normalized package name match | nixpkgs package indexes: pkgs/by-name/ce/certstrap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - certstrap - 1.3.0-r35: normalized package name match | Alpine Linux edge package indexes: certstrap from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Tools to bootstrap CAs, certificate requests, and signed certificates | https://github.com/square/certstrap
- MacPorts - certstrap: normalized package name match | MacPorts ports tree: security/certstrap/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/certstrap: normalized package name match | Scoop official bucket manifest trees: bucket/certstrap.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [minica](https://pkg.so/zh-hans/brew/minica/) - Shares pkgdb curated category or tags: certificate-authority, certificates, cli, pki, security.
- [mkcert](https://pkg.so/zh-hans/brew/mkcert/) - Shares pkgdb curated category or tags: certificates, cli, security, tls.
- [certbot](https://pkg.so/zh-hans/brew/certbot/) - Shares pkgdb curated category or tags: certificates, cli, security, tls.
- [showcert](https://pkg.so/zh-hans/brew/showcert/) - Shares pkgdb curated category or tags: certificates, cli, security, tls.
- [certigo](https://pkg.so/zh-hans/brew/certigo/) - Shares pkgdb curated category or tags: certificates, cli, security, tls.
- [crip](https://pkg.so/zh-hans/brew/crip/) - Shares pkgdb curated category or tags: certificates, cli, security, tls.
- [lego](https://pkg.so/zh-hans/brew/lego/) - Shares pkgdb curated category or tags: certificates, cli, security.
- [easy-rsa](https://pkg.so/zh-hans/brew/easy-rsa/) - Shares pkgdb curated category or tags: certificate-authority, certificates, cli, pki, security.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
