macOS
brew install opensclocal Homebrew formula metadata
sudo port install openscMacPorts ports tree · security/opensc/Portfile · source: api.github.com
brew
Tools and libraries for smart cards. Version 0.27.1 via Homebrew; verified 2026-06-22.
install
brew install opensclocal Homebrew formula metadata
sudo port install openscMacPorts ports tree · security/opensc/Portfile · source: api.github.com
sudo apk add openscAlpine Linux edge package indexes · opensc · source: dl-cdn.alpinelinux.org
sudo apt install openscDebian stable package indexes · opensc · source: deb.debian.org
sudo dnf install openscFedora Rawhide package metadata · opensc · source: dl.fedoraproject.org
nix profile install nixpkgs#openscnixpkgs package indexes · pkgs/by-name/op/opensc/package.nix · source: api.github.com
sudo pacman -S openscArch Linux sync databases · opensc · source: geo.mirror.pkgbuild.com
sudo zypper install openscopenSUSE Tumbleweed package metadata · opensc · source: download.opensuse.org
choco install openscChocolatey community package catalog · opensc · source: community.chocolatey.org
winget install --id OpenSC.OpenSC -eWindows Package Manager source index · OpenSC.OpenSC · source: cdn.winget.microsoft.com
overview
Tools and libraries for smart cards
history
OpenSC provides smart-card tools and middleware, centered on cryptographic cards and tokens. It implements a PKCS#11 module, PKCS#15 support, many card-specific utilities, and platform integration pieces that let applications use private keys without extracting them from cards.
The OpenSC project dates to the early 2000s. Its project-history page records libopensc and opensc-apps 0.3.x releases in November and December 2001, and OpenSC 0.4.0 on 2001-12-29 by Juha Yrjola, Antti Tapaninen, and Timo Teras, merging libopensc and opensc-apps into one package and adding abstract card handling.
The project evolved from Unix smart-card tooling into cross-platform middleware. SourceForge metadata records the project as registered on 2001-05-03, and the modern GitHub project describes downloads for Windows installers, macOS installers, source tarballs, and nightly builds.
OpenSC became a common free PKCS#11 provider for cards that do not rely solely on vendor middleware. Debian describes it as a way for applications such as Firefox/Iceweasel and Thunderbird/Icedove to use smart cards via PKCS#11, while Red Hat documentation says RHEL provides the OpenSC PKCS#11 driver for smart cards by default.
Its adoption is broad in distribution terms: packages exist across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, Nix, Chocolatey, winget, MacPorts, and openSUSE. That breadth reflects a support role for authentication, mail encryption, digital signatures, VPN/client certificates, SSH, browser certificate stores, and token debugging.
Operators use pkcs11-tool, opensc-tool, pkcs15-tool, pkcs15-init, piv-tool, openpgp-tool, and card-specific helpers to inspect readers, list slots, initialize cards, import certificates, test PIN behavior, and exercise cryptographic operations. The package usually reads configuration from opensc.conf and integrates with PC/SC readers.
Applications use the OpenSC PKCS#11 module through NSS, p11-kit, OpenSSL integration layers, browser certificate stores, VPN clients, SSH tooling, and other software that knows PKCS#11. The OpenSC FAQ emphasizes that PKCS#11 is a software API for cryptographic hardware, while PKCS#15 is an on-card filesystem layout; OpenSC bridges both when a supported card allows it.
OpenSC is package-nerd gold because it turns hardware variance into a distro-maintained middleware stack. The package surface includes shared libraries, a PKCS#11 module, many tiny card tools, PC/SC integration, Windows MiniDriver support, macOS CryptoTokenKit/Tokend pieces, udev/system integration in some distributions, and card-driver policy encoded in opensc.conf.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
/etc/opensc.confexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
cardos-tool | cli | global executable | |
cryptoflex-tool | cli | global executable | |
dnie-tool | cli | global executable | |
dtrust-tool | cli | global executable | |
egk-tool | cli | global executable | |
eidenv | cli | global executable | |
gids-tool | cli | global executable | |
goid-tool | cli | global executable | |
iasecc-tool | cli | global executable | |
netkey-tool | cli | global executable | |
openpgp-tool | cli | global executable | |
opensc-asn1 | cli | global executable | |
opensc-explorer | cli | global executable | |
opensc-notify | cli | global executable | |
opensc-tool | cli | global executable | |
piv-tool | cli | global executable | |
pkcs11-register | cli | global executable | |
pkcs11-tool | cli | global executable | |
pkcs15-crypt | cli | global executable | |
pkcs15-init | cli | global executable | |
pkcs15-tool | cli | global executable | |
sc-hsm-tool | cli | global executable | |
westcos-tool | 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://github.com/OpenSC/OpenSC
install metadata
| Package key | brew:opensc |
|---|---|
| Version | 0.27.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/opensc |
| Homepage | https://github.com/OpenSC/OpenSC/wiki |
| Repository | https://github.com/OpenSC/OpenSC |
| Upstream docs | https://github.com/OpenSC/OpenSC/blob/master/README.md |
| License | LGPL-2.1-or-later |
| Source archive | https://github.com/OpenSC/OpenSC/releases/download/0.27.1/opensc-0.27.1.tar.gz |
| Last updated | 2026-06-22T14:05:44-07:00 |
| Pulse | updated |
| Dependencies | openssl@3 |
| Build dependencies | docbook-xsl, pkgconf |
| Uses from macOS | pcsc-lite |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | The OpenSSH PKCS11 smartcard integration will not work. If you need this functionality, unlink this formula, then install the OpenSC cask. |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | opensc |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
opensc 0.26.1-2
Smart card utilities with support for PKCS#15 compatible cards
https://github.com/OpenSC/OpenSC/wiki
sudo apt install openscopensc-pkcs11 0.26.1-2
Smart card utilities (PKCS#11 module)
https://github.com/OpenSC/OpenSC/wiki
sudo apt install opensc-pkcs11opensc
nix profile install nixpkgs#openscopensc 0.25.0~rc1-1build2
Smart card utilities with support for PKCS#15 compatible cards
https://github.com/OpenSC/OpenSC/wiki
sudo apt install openscopensc-pkcs11 0.25.0~rc1-1build2
Smart card utilities (PKCS#11 module)
https://github.com/OpenSC/OpenSC/wiki
sudo apt install opensc-pkcs11opensc 0.26.1-r0
Open source smart card tools and middleware
https://github.com/OpenSC/OpenSC
sudo apk add openscopensc-bash-completion 0.26.1-r0
Bash completions for opensc
https://github.com/OpenSC/OpenSC
sudo apk add opensc-bash-completionopensc-dev 0.26.1-r0
Open source smart card tools and middleware (development files)
https://github.com/OpenSC/OpenSC
sudo apk add opensc-devopensc-doc 0.26.1-r0
Open source smart card tools and middleware (documentation)
https://github.com/OpenSC/OpenSC
sudo apk add opensc-docopensc 0.27.1-3.fc45
Smart card library and applications
https://github.com/OpenSC/OpenSC/wiki
sudo dnf install openscopensc-libs 0.27.1-3.fc45
OpenSC libraries
https://github.com/OpenSC/OpenSC/wiki
sudo dnf install opensc-libsopensc 0.27.1-2
Tools and libraries for smart cards
https://github.com/OpenSC/OpenSC/wiki
sudo pacman -S openscopensc 0.27.1-1.2
Smart Card Utilities
https://github.com/OpenSC/OpenSC/wiki
sudo zypper install openscopensc-bash-completion 0.27.1-1.2
Bash Completion for opensc
https://github.com/OpenSC/OpenSC/wiki
sudo zypper install opensc-bash-completionopensc
sudo port install openscopensc
choco install openscsource 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.