Skip to content

Commit

Permalink
Make provider preferential, not mandatory
Browse files Browse the repository at this point in the history
Apparently Ubuntu has some configuration that tries hard to load a
rdrand engine. When the propquery is set to a hard provider=pkcs11 this
fails as the tpe of DRBG being sourced becomes incompatible with the
mandate property.
Soften the test to only prefer the provider so that the operations we
care for will come from the pkcs11 provider (we check errors anyway) and
we do not get the noise of unrelated failures.

Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed May 29, 2024
1 parent cf1ca98 commit a9936e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/trsapssam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sed -e "s/#pkcs11-module-encode-provider-uri-to-pem/pkcs11-module-encode-provide
OPENSSL_CONF=${OPENSSL_CONF}.rsapss_genpkey

ossl '
genpkey -propquery "provider=pkcs11"
genpkey -propquery "?provider=pkcs11"
-algorithm "RSA-PSS" -pkeyopt "rsa_pss_keygen_md:SHA256"
-pkeyopt "pkcs11_uri:pkcs11:object=Test-RSA-PSS-Restrictions"'

Expand Down

0 comments on commit a9936e9

Please sign in to comment.