Skip to content

Commit

Permalink
Add p11proxy to OpenDNSSEC "test-rsapub" tests
Browse files Browse the repository at this point in the history
Refs #46
  • Loading branch information
JeremyRand committed Feb 23, 2022
1 parent a9e055c commit 10bb088
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testdata/ci-opendnssec-tests.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ echo "===== test-rsaimport slot 0 (diff via p11proxy) ====="

diff -I '^Modulus: [0-9A-F]\+$' test-rsaimport-default.txt test-rsaimport-p11proxy.txt || testdata/dump-proxy-log-fail.bash

echo "===== test-rsapub slot 0 (default) ====="

pkcs11-testing --module "$PKCS11PROXY_CKBI_TARGET" --slot "$SLOT_ID" --pin 1234 --test-rsapub | tee test-rsapub-default.txt || true

echo "===== test-rsapub slot 0 (via p11proxy) ====="

pkcs11-testing --module ./libp11proxy.so --slot "$SLOT_ID" --pin 1234 --test-rsapub | tee test-rsapub-p11proxy.txt || true

echo "===== test-rsapub slot 0 (diff via p11proxy) ====="

diff -I '^Modulus: [0-9A-F]\+$' test-rsapub-default.txt test-rsapub-p11proxy.txt || testdata/dump-proxy-log-fail.bash

echo "===== init slot 1 ====="

SLOT_ID=$(softhsm2-util --init-token --slot 1 --label softhsm --so-pin 1234 --pin 1234 | grep -oE '[^ ]+$')
Expand Down

0 comments on commit 10bb088

Please sign in to comment.