u-boot/tools/binman/btool/p11_kit.py
Wojciech Dubowik e73443167b test: binman: Add test for pkcs11 signed capsule
Test pkcs11 URI support for UEFI capsule generation. Both
public certificate and private key are used over pkcs11
protocol.
Pkcs11-tool has been introduced as softhsm tool doesn't have
functionality to import certificates in commonly distributed
version (only in the latest).

Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@mt.com>
Reviewed-by: Simon Glass <simon.glass@canonical.com>
2026-03-18 06:14:17 -06:00

22 lines
615 B
Python

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright 2026 Mettler Toledo Technologies GmbH
#
"""Bintool implementation for p11-kit"""
from binman import bintool
class Bintoolp11_kit(bintool.Bintool):
"""p11-kit -- support tool for pkcs#11 libraries"""
def __init__(self, name):
super().__init__('p11-kit',
'Pkcs11 library modules tool',
version_args='list modules')
def fetch(self, method):
"""Install p11-kit via APT """
if method != bintool.FETCH_BIN:
return None
return self.apt_install('p11-kit')