Registry / crypto / miekg-pkcs11

miekg-pkcs11

JSON →
library1.1.2gogounverified

A Go wrapper for the PKCS#11 cryptographic token interface.

go get github.com/miekg/pkcs11
INSTALL
IMPORT
SIG · MIEKG-PKCS11
M
miekg-pkcs11
cryptogov1.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pkcs11
github.com/miekg/pkcs11

Initialize a PKCS#11 context with a module path.

package main import ( "fmt" "github.com/miekg/pkcs11" ) func main() { ctx := pkcs11.New("/usr/lib/softhsm/libsofthsm2.so") if ctx == nil { panic("failed to initialize PKCS#11 context") } defer ctx.Destroy() fmt.Println("PKCS#11 context initialized") }
Debug
Known issues
gotchaRequires a PKCS#11 module (shared library) to be present on the system.
fix
Install a PKCS#11 implementation like SoftHSM or a hardware token driver.
affects: all
Upgrade
Version history
1.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
miekg-pkcs11 — go get miekg-pkcs11 · libregistry