Skip to content

Commit 8f4b51b

Browse files
greengrass: Add pkcs11 plugin
This plugin can be enabled via adding `pkcs11` to PACKAGECONFIG. Signed-off-by: Mariam Elshakfy <[email protected]>
1 parent 515327d commit 8f4b51b

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

recipes-iot/aws-iot-greengrass/greengrass-bin_2.14.1.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ DEPENDS += "gettext-native"
1313
PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'fleetprovisioning', '', d)}"
1414

1515
PACKAGECONFIG[fleetprovisioning] = ",,greengrass-plugin-fleetprovisioning,greengrass-plugin-fleetprovisioning"
16+
PACKAGECONFIG[pkcs11] = ",,greengrass-plugin-pkcs11,greengrass-plugin-pkcs11"
1617

1718
SRC_URI = "\
1819
https://d2s8p88vqu9w66.cloudfront.net/releases/greengrass-${PV}.zip;subdir=greengrass-bin \
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
aws.greengrass.crypto.Pkcs11Provider:
3+
configuration:
4+
name: "aws.greengrass.crypto.Pkcs11Provider"
5+
library: "/usr/lib/pkcs11/libtpm2_pkcs11.so"
6+
slot: 1
7+
userPin: "123456"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025, Linaro Limited.
2+
#
3+
# SPDX-License-Identifier: MIT
4+
5+
SUMMARY = "AWS Greengrass Crypto PKCS11 Provider"
6+
DESCRIPTION = "Install Java based AWS Greengrass crypto pkcs11 provider plugin"
7+
HOMEPAGE = "https://github.com/aws-greengrass/aws-greengrass-pkcs11-provider"
8+
LICENSE = "Apache-2.0"
9+
LIC_FILES_CHKSUM = "file://${UNPACKDIR}/LICENSE;md5=34400b68072d710fecd0a2940a0d1658"
10+
11+
PLUGIN_SRC_NAME = "aws.greengrass.crypto.Pkcs11Provider-${PV}.jar"
12+
PLUGIN_NAME = "aws.greengrass.crypto.Pkcs11Provider.jar"
13+
14+
inherit greengrass-plugin
15+
16+
# PKCS11 Plugin version: 2.0.9
17+
SRC_URI = "https://d2s8p88vqu9w66.cloudfront.net/releases/Pkcs11Provider/aws.greengrass.crypto.Pkcs11Provider-${PV}.jar;unpack=false; \
18+
https://raw.githubusercontent.com/aws-greengrass/aws-greengrass-pkcs11-provider/v${PV}/LICENSE;name=license; \
19+
file://config.yaml.template;"
20+
21+
SRC_URI[sha256sum] = "00516cbdaa39fd3a9436eba3efae5388a7a82b3fedc60a5af675200737f5737c"
22+
SRC_URI[license.sha256sum] = "09e8a9bcec8067104652c168685ab0931e7868f9c8284b66f5ae6edae5f1130b"

0 commit comments

Comments
 (0)