The autopkgtests look like an infra issue rather than a test failure.

VM verification coming soon...

### Verification Done Jammy (Yubikey) ###
$ apt-cache policy opensc
opensc:
  Installed: 0.22.0-1ubuntu2.1
  Candidate: 0.22.0-1ubuntu2.1
  Version table:
 *** 0.22.0-1ubuntu2.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 
Packages
        100 /var/lib/dpkg/status
     0.22.0-1ubuntu2+test0 500
        500 
https://ppa.launchpadcontent.net/whershberger/opensc-00408323/ubuntu jammy/main 
amd64 Packages
     0.22.0-1ubuntu2+esm1 510
        510 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main amd64 
Packages
     0.22.0-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
ubuntu@jammy-desktop:~$ sudo pkcs11-tool --test --login
Using slot 0 with a present token (0x0)
Logging in to "Users".
Please enter User PIN:
C_SeedRandom() and C_GenerateRandom():
  seeding (C_SeedRandom) not supported
  seems to be OK
Digests:
  all 4 digest functions seem to work
  MD5: OK
  SHA-1: OK
  RIPEMD160: OK
Signatures (currently only for RSA)
  testing key 0 (PIV AUTH key)
  all 4 signature functions seem to work
  testing signature mechanisms:
    RSA-X-509: OK
    RSA-PKCS: OK
    SHA1-RSA-PKCS: OK
    MD5-RSA-PKCS: OK
    RIPEMD160-RSA-PKCS: OK
    SHA256-RSA-PKCS: OK
Verify (currently only for RSA)
  testing key 0 (PIV AUTH key)
    RSA-X-509: OK
    RSA-PKCS: OK
    SHA1-RSA-PKCS: OK
    MD5-RSA-PKCS: OK
    RIPEMD160-RSA-PKCS: OK
Decryption (currently only for RSA)
  testing key 0 (PIV AUTH key)
    RSA-X-509: OK
    RSA-PKCS: OK
No errors
ubuntu@jammy-desktop:~$ pkcs11-tool --list-objects --login
# ...omitted
ubuntu@jammy-desktop:~$ pkcs11-tool --read-object --id 1 --type pubkey > 
pubkey.der
Using slot 0 with a present token (0x0)
ubuntu@jammy-desktop:~$ openssl rsa -inform der -outform pem -in pubkey.der 
-pubin > pubkey.pem
writing RSA key
ubuntu@jammy-desktop:~$ dd if=/dev/urandom of=data.bin count=1 bs=64
1+0 records in
1+0 records out
64 bytes copied, 0,000181666 s, 352 kB/s
ubuntu@jammy-desktop:~$ pkcs11-tool --id 1 --sign --mechanism RSA-PKCS 
--input-file data.bin --output-file data.sig
Using slot 0 with a present token (0x0)
Logging in to "Users".
Please enter User PIN:
Using signature algorithm RSA-PKCS
ubuntu@jammy-desktop:~$ openssl pkeyutl -verify -pubin -inkey pubkey.pem -in 
data.bin -sigfile data.sig
Signature Verified Successfully
### Verification Done Jammy (Yubikey) ###

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2106434

Title:
  pkcs11-tool 0.22.0 fails in C_DigestInit with CKR_GENERAL_ERROR

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/opensc/+bug/2106434/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to