From 61bbf037a341fd2db5d1956ce45ad19c2a37c3db Mon Sep 17 00:00:00 2001 From: z4yx Date: Thu, 10 Oct 2024 13:46:19 +0800 Subject: [PATCH] test new DOs --- .github/workflows/tests.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ab668fe5..fe0333ab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -522,6 +522,18 @@ jobs: PIVGenKeyCert $s "/CN=CertAtSlot$s/" RSA4096 yubico-piv-tool -r "$RDID" -a import-certificate -s $s -i test-via-pcsc/long-cert.pem done + openssl rand -out /tmp/rand-pi 254 + openssl rand -out /tmp/rand-fig 512 + openssl rand -out /tmp/rand-face 512 + yubico-piv-tool -r "$RDID" -a write-object --id 0x5fc109 -i /tmp/rand-pi + yubico-piv-tool -r "$RDID" -a write-object --id 0x5fc108 -i /tmp/rand-face + yubico-piv-tool -r "$RDID" -a write-object --id 0x5fc103 -i /tmp/rand-fig + yubico-piv-tool -r "$RDID" -a verify-pin -P 654321 -a read-object --id 0x5fc103 -i /tmp/read-fig + yubico-piv-tool -r "$RDID" -a verify-pin -P 654321 -a read-object --id 0x5fc109 -i /tmp/read-pi + yubico-piv-tool -r "$RDID" -a verify-pin -P 654321 -a read-object --id 0x5fc108 -i /tmp/read-face + diff /tmp/rand-pi /tmp/read-pi + diff /tmp/rand-face /tmp/read-face + diff /tmp/rand-fig /tmp/read-fig - name: Prepare the Test Coverage Report run: |