mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-02-04 12:41:24 +00:00
tests: Pass --verify-profile=medium to certtool if supported
certtool emits the following message if --verify-profile is not passed: Note that no verification profile was selected. In the future the medium profile will be enabled by default. Use --verify-profile low to apply the default verification of NORMAL priority string. Pass the --verify-profile option if certtool supports it (since ~3.6.12). Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
a2abd3b67d
commit
22e975dc05
@ -24,6 +24,10 @@ PATH=${TOPBUILD}/src/swtpm_cert:$PATH
|
||||
|
||||
source ${TESTDIR}/common
|
||||
|
||||
if [ -n "$(${CERTTOOL} --help | grep -E "\-\-verify-profile")" ]; then
|
||||
verify_profile="--verify-profile=medium"
|
||||
fi
|
||||
|
||||
trap "cleanup" SIGTERM EXIT
|
||||
|
||||
function cleanup()
|
||||
@ -125,6 +129,7 @@ do
|
||||
|
||||
${CERTTOOL} \
|
||||
--verify \
|
||||
${verify_profile} \
|
||||
--load-ca-certificate "${ISSUERCERT}" \
|
||||
--infile "${workdir}/ek.pem"
|
||||
if [ $? -ne 0 ]; then
|
||||
|
||||
@ -35,6 +35,10 @@ PATH=${TOPBUILD}/src/swtpm_cert:$PATH
|
||||
|
||||
source ${TESTDIR}/common
|
||||
|
||||
if [ -n "$(${CERTTOOL} --help | grep -E "\-\-verify-profile")" ]; then
|
||||
verify_profile="--verify-profile=medium"
|
||||
fi
|
||||
|
||||
trap "cleanup" SIGTERM EXIT
|
||||
|
||||
function cleanup()
|
||||
@ -214,6 +218,7 @@ do
|
||||
|
||||
GNUTLS_PIN=${PIN} ${CERTTOOL} \
|
||||
--verify \
|
||||
${verify_profile} \
|
||||
--load-ca-certificate ${ISSUERCERT} \
|
||||
--infile ${workdir}/ek.pem
|
||||
if [ $? -ne 0 ]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user