pkcs11 interface

The pkcs11 interface enables the PKCS#11 Cryptographic Token Interface Standard to be used with access to exposed tokens.

Developer details

Auto-connect: no
Super-privileged: yes

Note

The pkcs11 slot is unsupported for parallel instances. The slot owns a unique system-wide resource that instances would conflict over.

Code examples

The test code can be found in the snapd repository:
https://github.com/canonical/snapd/blob/master/interfaces/builtin/pkcs11_test.go

The source code for the interface is in the snapd repository:
https://github.com/canonical/snapd/blob/master/interfaces/builtin/pkcs11.go