# 使用 Homebrew, Nix 安装 ntbtls

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

## 安装

```sh
sudo av install brew:ntbtls
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ntbtls
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ntbtls
```

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

## 软件包事实

- **软件包键:** brew:ntbtls
- **软件包管理器:** Homebrew
- **版本:** 0.3.2
- **来源摘要:** Not Too Bad TLS Library
- **主页:** <https://gnupg.org/>
- **最后更新:** 2026-06-22T14:05:38-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ntbtls-config (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ntbTLS, the Not Too Bad TLS Library, is a small GnuPG-family TLS 1.2 client library intended to pair with Libgcrypt and LibKSBA. It deliberately leaves certificate verification to callers such as GnuPG's `dirmngr`.

### 项目历史

The GnuPG wiki says ntbTLS started in 2014 as Werner Koch's stripped-down fork of PolarSSL, later known as mbedTLS, using Libgcrypt and existing GnuPG modules for X.509 handling. The official page says the code replaced PolarSSL crypto with Libgcrypt, removed older SSL/TLS protocol support, and has been used by the GnuPG version of Gpg4win since 2017.

### 采用历史

ntbTLS is narrow infrastructure rather than a general TLS competitor. The GnuPG libraries page lists it under other GnuPG-related libraries, while the project page frames it as a good fit where GnuPG already has certificate verification and wants to avoid pulling in another TLS library's crypto stack.

The release directory shows public tarballs from 0.1.0 on February 21, 2017 through 0.3.2 on January 12, 2024. On July 1, 2026, Homebrew listed ntbTLS 0.3.2 with 62 installs in its 365-day analytics window, which matches its specialized role.

### 使用方式

Package users usually encounter `ntbtls-config` and the library as build-time plumbing for GnuPG-adjacent software. It is not a drop-in OpenSSL replacement: the README says the server part and TLS 1.3 are not implemented in version 0.3, and callers must do certificate verification themselves.

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

ntbTLS matters because it shows the GnuPG project's preference for minimizing independent crypto implementations inside the stack. For packagers, the important details are its Libgcrypt/LibKSBA dependencies, GPL licensing, and intentionally limited protocol surface.

### 时间线

- 2014: ntbTLS began as a stripped-down PolarSSL fork.
- February 21, 2017: the GnuPG file area published ntbtls-0.1.0.
- 2017: Gpg4win's GnuPG build began using ntbTLS.
- January 12, 2024: ntbtls-0.3.2 tarball date in the GnuPG file area.
- July 1, 2026: Homebrew listed stable version 0.3.2.

### Related projects

- Libgcrypt supplies cryptographic primitives.
- LibKSBA supplies X.509 and CMS handling.
- PolarSSL/mbedTLS is the historical source base for the TLS protocol code.
- GnuPG and Gpg4win are the main practical ecosystem.

### 来源

- <https://formulae.brew.sh/formula/ntbtls>
- <https://github.com/gpg/ntbtls>
- <https://gnupg.org/ftp/gcrypt/ntbtls/>
- <https://wiki.gnupg.org/NTBTLS>
- <https://www.gnupg.org/software/libraries.html>
- <https://www.gnupg.org/software/ntbtls/index.html>


## 安全说明

没有找到 ntbtls 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Nix - ntbtls: normalized package name match | nixpkgs package indexes: pkgs/by-name/nt/ntbtls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
