-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpd
23 lines (18 loc) · 826 Bytes
/
pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# SPDX-FileCopyrightText: 2024 Infineon Technologies AG
#
# SPDX-License-Identifier: MIT
export PKCS11_MODULE=liboptigatrust-i2c-linux-pkcs11.so
#export PKCS11SPY=/home/pi/pkcs11-optiga-trust-m-vgdb/VisualGDB/Debug/pkcs11_trustm.so
#export PKCS11SPY=liboptigatrust-i2c-linux-pkcs11.so
#export OPENSC_DEBUG=9
#export PKCS11SPY_OUTPUT=pkcs11-spy-tool.log
echo ------------------------------------------------------------------------------------
echo ./pd $@
echo ------------------------------------------------------------------------------------
pkcs11-tool --module $PKCS11_MODULE -v $@
if [ $? -ne 0 ]; then
echo ===================================================================================
echo ERROR: $@
echo ===================================================================================
(exit 1)
fi