macOS
brew install libksbalocal Homebrew formula metadata
sudo port install libksbaMacPorts ports tree · devel/libksba/Portfile · source: api.github.com
brew
X.509 and CMS library. Version 1.8.0 via Homebrew; verified 2026-05-14.
install
brew install libksbalocal Homebrew formula metadata
sudo port install libksbaMacPorts ports tree · devel/libksba/Portfile · source: api.github.com
sudo apk add libksbaAlpine Linux edge package indexes · libksba · source: dl-cdn.alpinelinux.org
sudo apt install libksba-devDebian stable package indexes · libksba-dev · source: deb.debian.org
sudo dnf install libksbaFedora Rawhide package metadata · libksba · source: dl.fedoraproject.org
nix profile install nixpkgs#libksbanixpkgs package indexes · pkgs/by-name/li/libksba/package.nix · source: api.github.com
sudo pacman -S libksbaArch Linux sync databases · libksba · source: geo.mirror.pkgbuild.com
sudo zypper install libksba-developenSUSE Tumbleweed package metadata · libksba-devel · source: download.opensuse.org
overview
X.509 and CMS library
history
Libksba is GnuPG's X.509 and CMS library. It gives C applications a shared interface for parsing and handling X.509 certificates, CMS/PKCS#7 messages, certificate revocation lists, and PKCS#10 certificate requests.
GnuPG's Libksba page describes the library as a way to hide the many protocol details and dialects of X.509 certificates, CMS data, and related objects behind one C API. The README explains that KSBA is pronounced Kasbah, ships as a standard shared library, and deliberately does not rely on another cryptographic library.
The reference manual edition 1.0.6 was last updated on 2009-01-09 for KSBA 1.0.6, showing that Libksba had already stabilized as a documented component of the GnuPG library set by the late 2000s. GnuPG download metadata lists Libksba 1.8.0 on 2026-05-13.
Libksba's adoption is mostly through GnuPG and GnuPG-adjacent packaging. The README says GnuPG's dirmngr module makes extensive use of Libksba's OCSP feature, while GnuPG documentation and related manuals identify gpgsm as the X.509/CMS counterpart to gpg for S/MIME workflows.
It appears in Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, MacPorts, Nix, and openSUSE because GnuPG stacks are base security infrastructure on Unix-like systems. Users rarely install it for its own UI; they inherit it through certificate, S/MIME, and CMS support.
Developers use Libksba when they need C-level access to X.509 certificate structures, CMS messages, CRLs, PKCS#10 requests, and related parsing/serialization inside GnuPG-style applications. Packagers see ksba-config as the small build-helper executable attached to the library.
Libksba is significant because it is a quiet security plumbing package: not the cryptographic primitive library, not the mail client, and not the gpg command, but the X.509/CMS parser layer that lets GnuPG's S/MIME side exist as a separately packaged dependency.
security posture
No matching local secret-handling manifest was found for libksba. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
ksba-config | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://www.gnupg.org/related_software/libksba/
install metadata
| Package key | brew:libksba |
|---|---|
| Version | 1.8.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libksba |
| Homepage | https://www.gnupg.org/related_software/libksba/ |
| Repository | https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libksba.git%3Ba%3Dsummary |
| Upstream docs | https://www.gnupg.org/documentation/manuals/ksba |
| License | LGPL-3.0-or-later OR GPL-2.0-or-later |
| Source archive | https://gnupg.org/ftp/gcrypt/libksba/libksba-1.8.0.tar.bz2 |
| Last updated | 2026-05-14T01:41:21Z |
| Pulse | updated |
| Dependencies | libgpg-error |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libksba |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libksba-dev 1.6.7-2+b1
X.509 and CMS support library - development files
https://www.gnupg.org/related_software/libksba/
sudo apt install libksba-devlibksba-mingw-w64-dev 1.6.7-2
X.509 and CMS support library (Windows development)
https://www.gnupg.org/related_software/libksba/
sudo apt install libksba-mingw-w64-devlibksba8 1.6.7-2+b1
X.509 and CMS support library
https://www.gnupg.org/related_software/libksba/
sudo apt install libksba8libksba
nix profile install nixpkgs#libksbalibksba-dev 1.6.6-1build1
X.509 and CMS support library - development files
https://www.gnupg.org/related_software/libksba/
sudo apt install libksba-devlibksba-mingw-w64-dev 1.6.6-1build1
X.509 and CMS support library (Windows development)
https://www.gnupg.org/related_software/libksba/
sudo apt install libksba-mingw-w64-devlibksba8 1.6.6-1build1
X.509 and CMS support library
https://www.gnupg.org/related_software/libksba/
sudo apt install libksba8libksba 1.7.0-r0
Libksba is a CMS and X.509 access library
https://www.gnupg.org/software/libksba/index.html
sudo apk add libksbalibksba-dev 1.7.0-r0
Libksba is a CMS and X.509 access library (development files)
https://www.gnupg.org/software/libksba/index.html
sudo apk add libksba-devlibksba-doc 1.7.0-r0
Libksba is a CMS and X.509 access library (documentation)
https://www.gnupg.org/software/libksba/index.html
sudo apk add libksba-doclibksba 1.8.0-1.fc45
CMS and X.509 library
sudo dnf install libksbalibksba-devel 1.8.0-1.fc45
Development headers and libraries for libksba
sudo dnf install libksba-devellibksba 1.8.0-1
Library for working with X.509 certificates, CMS data and related objects
https://www.gnupg.org/related_software/libksba/
sudo pacman -S libksbalibksba-devel 1.8.0-1.1
A X.509 Library
sudo zypper install libksba-devellibksba8 1.8.0-1.1
A X.509 Library
sudo zypper install libksba8libksba
sudo port install libksbasource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.