From a3b3b67fd242fbb4ad4c7873e72cd26552825b78 Mon Sep 17 00:00:00 2001 From: Aleksey Sanin Date: Sun, 5 Oct 2025 12:12:55 -0400 Subject: [PATCH] (xmlsec-nss) Added test for key lookup in NSS DB --- tests/testDSig.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/testDSig.sh b/tests/testDSig.sh index 863b1d2fe..5f0c6f52b 100755 --- a/tests/testDSig.sh +++ b/tests/testDSig.sh @@ -999,6 +999,21 @@ execDSigTest $res_success \ "$priv_key_option:largersakey $topfolder/keys/largersakey.$priv_key_format --pwd secret123" \ "$priv_key_option:largersakey $topfolder/keys/largersakey.$priv_key_format --pwd secret123" + +if [ "z$xmlsec_feature_nssdb_lookup" = "zyes" ] ; then + # this test expects "largersakey" in the NSS DB + extra_message="Lookup key in NSS DB" + execDSigTestWithCryptoConfig $res_success \ + "" \ + "aleksey-xmldsig-01/enveloped-sha1-rsa-sha1" \ + "sha1 rsa-sha1" \ + "" \ + "" \ + "--enabled-key-data key-name,rsa" \ + "--enabled-key-data key-name,rsa" \ + "$topfolder/keys/nssdb" +fi + execDSigTest $res_success \ "" \ "aleksey-xmldsig-01/enveloped-sha224-ecdsa-sha224" \