Install this version:
emerge -a =dev-libs/pkcs11-provider-1.3.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/pkcs11-provider-1.3.0
Or alternatively:
emerge --autounmask-write -a =dev-libs/pkcs11-provider-1.3.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.3.0 | 8 | ~amd64 | 0 |
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="OpenSSL 3+ provider to access hardware or software tokens via PKCS#11"
HOMEPAGE="https://github.com/openssl-projects/pkcs11-provider"
SRC_URI="https://github.com/openssl-projects/${PN}/releases/download/v${PV}/${P}.tar.xz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
# p11-kit provides the default PKCS#11 module (p11-kit-proxy.so)
RDEPEND="
app-crypt/p11-kit
>=dev-libs/openssl-3.0.7:=
"
DEPEND="${RDEPEND}
test? ( dev-libs/nss )
"
BDEPEND="
virtual/pkgconfig
test? (
dev-libs/nss[utils]
dev-libs/opensc
dev-libs/softhsm
dev-tcltk/expect
dev-util/xxd
)
"
src_test() {
# kryoptic is not packaged
#
# softhsm links against OpenSSL and hashes the PIN in C_Login. If
# the pkcs11 provider is loaded before the default provider, that
# digest is routed back through the provider into softhsm, which
# deadlocks on its own mutex. The test suite avoids this through
# its own config, but the kernel's sign-file and extract-cert load
# pkcs11 first and hang with softhsm keys unless the provider is
# configured with "pkcs11-module-block-operations = digest".
# https://github.com/softhsm/SoftHSMv2/issues/834
meson_src_test --suite softhsm --suite softokn
}
Manage flags for this package:
euse -i <flag> -p dev-libs/pkcs11-provider |
euse -E <flag> -p dev-libs/pkcs11-provider |
euse -D <flag> -p dev-libs/pkcs11-provider
app-crypt/p11-kit >=dev-libs/openssl-3.0.7:= test? ( dev-libs/nss )
app-crypt/p11-kit >=dev-libs/openssl-3.0.7:=
virtual/pkgconfig test? ( dev-libs/nss[utils] dev-libs/opensc dev-libs/softhsm dev-tcltk/expect dev-util/xxd )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | pkcs11-provider-1.3.0.tar.xz | 236628 bytes | https://github.com/openssl-projects/pkcs11-provider/releases/download/v1.3.0/pkcs11-provider-1.3.0.tar.xz |