forked from latchset/pkcs11-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The NSSDB backend is now super-slow so I am bumping the timeout to 60s/test. The kryoptic build is also adjusted to include this non-default feature. Signed-off-by: Jakub Jelen <jjelen@redhat.com>
- Loading branch information
Showing
5 changed files
with
58 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash -ex | ||
# Copyright (C) 2024 Jakub Jelen <jjelen@redhat.com> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
export KRYOPTIC_CONF="${TMPPDIR}/kryoptic.conf" | ||
cat >"${KRYOPTIC_CONF}" <<_EOF | ||
[[slots]] | ||
slot = 42 | ||
dbtype = "nssdb" | ||
dbargs = "configDir='${TOKDIR}' flags='passwordRequired'" | ||
description = "Kryoptic Soft Token" | ||
_EOF | ||
# flags='passwordRequired' is needed for p11tool to do login before the | ||
# search for private objects, otherwise the set up fails. | ||
|
||
# this overrides what we define in the generic init | ||
# the NSS DB can not store custom labels | ||
export TOKENLABEL="Kryoptic Soft Token" | ||
export TOKENLABELURI="Kryoptic%20Soft%20Token" | ||
|
||
# the rest is the same | ||
source "${TESTSSRCDIR}/kryoptic-init.sh" | ||
|
||
export TOKENCONFIGVARS="export KRYOPTIC_CONF=${TMPPDIR}/kryoptic.conf" | ||
export TOKENOPTIONS="pkcs11-module-quirks = no-allowed-mechanisms" | ||
export TESTPORT="36000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters