mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-04 20:26:13 +02:00
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>
22 lines
615 B
Python
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')
|