Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release 0.4.12 and openssl openssl-devel-3.0.7: test suits is failed in arm #484

Open
HelloCarry opened this issue Feb 7, 2023 · 0 comments

Comments

@HelloCarry
Copy link

=========================================
   libp11 0.4.12: tests/test-suite.log
=========================================

# TOTAL: 15
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  13
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: rsa-testfork.softhsm
==========================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1347
* Initializing smart card libp11-test...ok
Importing
Finished
***************
Listing objects
***************
Using slot 0 with a present token (0x3982b76b)
Private Key Object; RSA 
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=server-1
  ID:         01020304
Public Key Object; RSA 2048 bits
  label:      server-key
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Slot manufacturer......: SoftHSM project
Slot description.......: SoftHSM slot ID 0x3982b76b
Slot token label.......: libp11-test
Slot token manufacturer: SoftHSM project
Slot token model.......: SoftHSM v2
Slot token serialnr....: 9a7f2f773982b76b
256-byte signature created
Signature matched
Cleanup complete
Child terminated by signal #11
Child terminated by signal #11
Child terminated by signal #11
Child terminated by signal #11
Child terminated by signal #11
Child terminated by signal #11
FAIL rsa-testfork.softhsm (exit status: 1)

FAIL: rsa-evp-sign.softhsm
==========================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1413
* Initializing smart card libp11-test...ok
Importing
Finished
***************
Listing objects
***************
Using slot 0 with a present token (0x1acdfffa)
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=server-1
  ID:         01020304
Private Key Object; RSA 
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Public Key Object; RSA 2048 bits
  label:      server-key
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
pkcs11:token=libp11-test;id=%01%02%03%04;object=server-key;type=private;pin-value=1234
PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so
Found 2 slots
Looking in slots for private key without login: id=01020304 label=server-key
- [449708026] SoftHSM slot ID 0x1acdfff  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x1acdfffa
Found token: libp11-test
Looking in slots for private key with login: id=01020304 label=server-key
- [449708026] SoftHSM slot ID 0x1acdfff  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x1acdfffa
Found token: libp11-test
Found 1 private key:
   1 P  id=01020304 label=server-key
Returning last matching private key: id=01020304 label=server-key
Looking in slots for public key without login: id=01020304 label=server-key
- [449708026] SoftHSM slot ID 0x1acdfff  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x1acdfffa
Found token: libp11-test
Found 1 public key:
   1    id=01020304 label=server-key
Returning last matching public key: id=01020304 label=server-key
./rsa-evp-sign.softhsm: line 35:  1425 Segmentation fault      (core dumped) ./evp-sign ctrl false "${outdir}/engines.cnf" ${PRIVATE_KEY} ${PUBLIC_KEY} ${MODULE}
Basic PKCS #11 test, using ctrl failed
FAIL rsa-evp-sign.softhsm (exit status: 1)

FAIL: ec-evp-sign.softhsm
=========================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1430
* Initializing smart card... ok
Using slot 0 with a present token (0x646f5c9)
Using slot 0 with a present token (0x646f5c9)
Using slot 0 with a present token (0x646f5c9)
***************
Listing objects
***************
Using slot 0 with a present token (0x646f5c9)
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=ec
  ID:         01020304
Public Key Object; EC  EC_POINT 256 bits
  EC_POINT:   044104dd0eeb0cdbf4d1e0a385f424f0dc1cb7da10e41e11ab1da667ad96f2a8b7039178bad0166556dc2bbe96dd46879eb6036bb5b90dac4f28d8792092a5fd941c4c
  EC_PARAMS:  06082a8648ce3d030107
  label:      server-key
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Private Key Object; EC
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so
Found 2 slots
Looking in slots for private key without login: id=01020304 label=server-key
- [105313737] SoftHSM slot ID 0x646f5c9  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x646f5c9
Found token: libp11-test
Looking in slots for private key with login: id=01020304 label=server-key
- [105313737] SoftHSM slot ID 0x646f5c9  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x646f5c9
Found token: libp11-test
Found 1 private key:
   1 P  id=01020304 label=server-key
Returning last matching private key: id=01020304 label=server-key
Looking in slots for public key without login: id=01020304 label=server-key
- [105313737] SoftHSM slot ID 0x646f5c9  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x646f5c9
Found token: libp11-test
Found 1 public key:
   1    id=01020304 label=server-key
Returning last matching public key: id=01020304 label=server-key
./ec-evp-sign.softhsm: line 33:  1445 Segmentation fault      (core dumped) ./evp-sign ctrl false "${outdir}/engines.cnf" ${PRIVATE_KEY} ${PUBLIC_KEY} ${MODULE}
Basic PKCS #11 test, using ctrl failed
FAIL ec-evp-sign.softhsm (exit status: 1)

FAIL: ec-testfork.softhsm
=========================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1450
* Initializing smart card... ok
Using slot 0 with a present token (0x1669e678)
Using slot 0 with a present token (0x1669e678)
Using slot 0 with a present token (0x1669e678)
***************
Listing objects
***************
Using slot 0 with a present token (0x1669e678)
Public Key Object; EC  EC_POINT 256 bits
  EC_POINT:   044104dd0eeb0cdbf4d1e0a385f424f0dc1cb7da10e41e11ab1da667ad96f2a8b7039178bad0166556dc2bbe96dd46879eb6036bb5b90dac4f28d8792092a5fd941c4c
  EC_PARAMS:  06082a8648ce3d030107
  label:      server-key
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=ec
  ID:         01020304
Private Key Object; EC
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Slot manufacturer......: SoftHSM project
Slot description.......: SoftHSM slot ID 0x1669e678
Slot token label.......: libp11-test
Slot token manufacturer: SoftHSM project
Slot token model.......: SoftHSM v2
Slot token serialnr....: 0a2e1e601669e678
71-byte signature created
Signature matched
Cleanup complete
Child terminated by signal #11
Child terminated by signal #11
Child terminated by signal #11
Child terminated by signal #11
Child terminated by signal #11
Child terminated by signal #11
FAIL ec-testfork.softhsm (exit status: 1)

FAIL: fork-change-slot.softhsm
==============================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1480
* Initializing smart card token1...ok
* Initializing smart card token2...ok
Key pair generated:
Private Key Object; RSA 
  label:      pkey
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive, always sensitive, never extractable, local
Public Key Object; RSA 2048 bits
  label:      pkey
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     local
Found token (8bf772fa-537c-7b06-1756-b221c4864bd3) with matching token label.
The token (output.1480/softhsm-testpkcs11.db/8bf772fa-537c-7b06-1756-b221c4864bd3) has been deleted.
Child 1492 terminated by signal #11
./fork-change-slot.softhsm: line 66:  1490 Segmentation fault      (core dumped) ./fork-change-slot "pkcs11:token=token2;object=pkey;type=private;pin-value=$PIN" "${outdir}/engines.cnf" ${MODULE}
FAIL fork-change-slot.softhsm (exit status: 1)

FAIL: rsa-pss-sign.softhsm
==========================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1505
* Initializing smart card libp11-test...ok
Importing
Finished
***************
Listing objects
***************
Using slot 0 with a present token (0x72f55382)
Public Key Object; RSA 2048 bits
  label:      server-key
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Private Key Object; RSA 
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=server-1
  ID:         01020304
PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so
Found 2 slots
Looking in slots for private key without login: id=01020304 label=server-key
- [1928680322] SoftHSM slot ID 0x72f5538  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x72f55382
Found token: libp11-test
Looking in slots for private key with login: id=01020304 label=server-key
- [1928680322] SoftHSM slot ID 0x72f5538  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x72f55382
Found token: libp11-test
Found 1 private key:
   1 P  id=01020304 label=server-key
Returning last matching private key: id=01020304 label=server-key
Looking in slots for public key without login: id=01020304 label=server-key
- [1928680322] SoftHSM slot ID 0x72f5538  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x72f55382
Found token: libp11-test
Found 1 public key:
   1    id=01020304 label=server-key
Returning last matching public key: id=01020304 label=server-key
./rsa-pss-sign.softhsm: line 33:  1520 Segmentation fault      (core dumped) ./rsa-pss-sign 1234 "${outdir}/engines.cnf" ${PRIVATE_KEY} ${PUBLIC_KEY} ${MODULE}
RSA-PSS signature/verification test failed.
FAIL rsa-pss-sign.softhsm (exit status: 1)

FAIL: rsa-oaep.softhsm
======================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1525
* Initializing smart card libp11-test...ok
Importing
Finished
***************
Listing objects
***************
Using slot 0 with a present token (0x590b3d69)
Public Key Object; RSA 2048 bits
  label:      server-key
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Private Key Object; RSA 
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=server-1
  ID:         01020304
PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so
Found 2 slots
Looking in slots for private key without login: id=01020304 label=server-key
- [1493908841] SoftHSM slot ID 0x590b3d6  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x590b3d69
Found token: libp11-test
Looking in slots for private key with login: id=01020304 label=server-key
- [1493908841] SoftHSM slot ID 0x590b3d6  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x590b3d69
Found token: libp11-test
Found 1 private key:
   1 P  id=01020304 label=server-key
Returning last matching private key: id=01020304 label=server-key
Looking in slots for public key without login: id=01020304 label=server-key
- [1493908841] SoftHSM slot ID 0x590b3d6  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x590b3d69
Found token: libp11-test
Found 1 public key:
   1    id=01020304 label=server-key
Returning last matching public key: id=01020304 label=server-key
./rsa-oaep.softhsm: line 33:  1537 Segmentation fault      (core dumped) ./rsa-oaep 1234 "${outdir}/engines.cnf" ${PRIVATE_KEY} ${PUBLIC_KEY} ${MODULE}
RSA-OAEP encryption/decryption test failed.
FAIL rsa-oaep.softhsm (exit status: 1)

FAIL: case-insensitive.softhsm
==============================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1542
* Initializing smart card libp11-test...ok
Importing
Finished
***************
Listing objects
***************
Using slot 0 with a present token (0x6cce52f1)
Private Key Object; RSA 
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=server-1
  ID:         01020304
Public Key Object; RSA 2048 bits
  label:      server-key
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so
Found 2 slots
Looking in slots for private key without login: id=01020304 label=server-key
- [1825460977] SoftHSM slot ID 0x6cce52f  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x6cce52f1
Found token: libp11-test
Looking in slots for private key with login: id=01020304 label=server-key
- [1825460977] SoftHSM slot ID 0x6cce52f  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x6cce52f1
Found token: libp11-test
Found 1 private key:
   1 P  id=01020304 label=server-key
Returning last matching private key: id=01020304 label=server-key
Looking in slots for public key without login: id=01020304 label=server-key
- [1825460977] SoftHSM slot ID 0x6cce52f  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x6cce52f1
Found token: libp11-test
Found 1 public key:
   1    id=01020304 label=server-key
Returning last matching public key: id=01020304 label=server-key
./case-insensitive.softhsm: line 42:  1554 Segmentation fault      (core dumped) ./evp-sign default false "${outdir}/engines.cnf" ${ALL_LOWER_PRIV_KEY} ${ALL_LOWER_PUB_KEY} ${MODULE}
All lower case PKCS#11 URI scheme detection failed
FAIL case-insensitive.softhsm (exit status: 1)

FAIL: rsa-check-privkey.softhsm
===============================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1559
* Initializing smart card... ok
Using slot 0 with a present token (0x71980053)
Using slot 0 with a present token (0x71980053)
***************
Listing objects
***************
Using slot 0 with a present token (0x71980053)
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=server-1
  ID:         01020304
Private Key Object; RSA 
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so
Found 2 slots
Looking in slots for private key without login: id=01020304 label=server-key
- [1905786963] SoftHSM slot ID 0x7198005  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x71980053
Found token: libp11-test
Looking in slots for private key with login: id=01020304 label=server-key
- [1905786963] SoftHSM slot ID 0x7198005  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x71980053
Found token: libp11-test
Found 1 private key:
   1 P  id=01020304 label=server-key
Returning last matching private key: id=01020304 label=server-key
./rsa-check-privkey.softhsm: line 33:  1574 Segmentation fault      (core dumped) ./check-privkey ${CERTIFICATE} ${PRIVATE_KEY} ${MODULE} "${outdir}/engines.cnf"
The private key loading couldn't get the public key from the certificate
FAIL rsa-check-privkey.softhsm (exit status: 1)

FAIL: ec-check-privkey.softhsm
==============================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1580
* Initializing smart card... ok
Using slot 0 with a present token (0x660b926a)
Using slot 0 with a present token (0x660b926a)
***************
Listing objects
***************
Using slot 0 with a present token (0x660b926a)
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=ec
  ID:         01020304
Private Key Object; EC
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
PKCS#11: Initializing the engine: /usr/lib64/pkcs11/libsofthsm2.so
Found 2 slots
Looking in slots for private key without login: id=01020304 label=server-key
- [1712034410] SoftHSM slot ID 0x660b926  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x660b926a
Found token: libp11-test
Looking in slots for private key with login: id=01020304 label=server-key
- [1712034410] SoftHSM slot ID 0x660b926  login                                 (libp11-test)
- [1] SoftHSM slot ID 0x1        uninitialized, login                  (no label)
Found slot:  SoftHSM slot ID 0x660b926a
Found token: libp11-test
Found 1 private key:
   1 P  id=01020304 label=server-key
Returning last matching private key: id=01020304 label=server-key
./ec-check-privkey.softhsm: line 32:  1597 Segmentation fault      (core dumped) ./check-privkey ${CERTIFICATE} ${PRIVATE_KEY} ${MODULE} "${outdir}/engines.cnf"
The private key loading couldn't get the public key from the certificate
FAIL ec-check-privkey.softhsm (exit status: 1)

FAIL: pkcs11-uri-without-token.softhsm
======================================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1602
* Initializing smart card libp11-test...ok
Importing
Finished
***************
Listing objects
***************
Using slot 0 with a present token (0x1176887)
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=server-1
  ID:         01020304
Public Key Object; RSA 2048 bits
  label:      server-key
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Private Key Object; RSA 
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Detected system: linux-gnu
Engine "pkcs11" set.
./pkcs11-uri-without-token.softhsm: line 54:  1614 Segmentation fault      (core dumped) openssl pkeyutl -engine pkcs11 -keyform engine -inkey "${PRIVATE_KEY}" -sign -out "${outdir}/signature.bin" -in "${outdir}/in.txt"
Failed to generate signature using PKCS#11 URI pkcs11:object=server-key;type=private;pin-value=1234
FAIL pkcs11-uri-without-token.softhsm (exit status: 1)

FAIL: search-all-matching-tokens.softhsm
========================================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1619
* Initializing smart card libp11-test-0...ok
Importing objects to token libp11-test-0
Finished
Private Key Object; RSA 
  label:      label-0
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Certificate Object; type = X.509 cert
  label:      label-0
  subject:    DN: CN=server-1
  ID:         01020304
Public Key Object; RSA 2048 bits
  label:      label-0
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
* Initializing smart card libp11-test-1...ok
Importing objects to token libp11-test-1
Finished
Certificate Object; type = X.509 cert
  label:      label-1
  subject:    DN: CN=server-1
  ID:         01020304
Public Key Object; RSA 2048 bits
  label:      label-1
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Private Key Object; RSA 
  label:      label-1
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
* Initializing smart card libp11-test-2...ok
Importing objects to token libp11-test-2
Finished
Private Key Object; RSA 
  label:      label-2
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Public Key Object; RSA 2048 bits
  label:      label-2
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Certificate Object; type = X.509 cert
  label:      label-2
  subject:    DN: CN=server-1
  ID:         01020304
* Initializing smart card libp11-test-3...ok
Importing objects to token libp11-test-3
Finished
Public Key Object; RSA 2048 bits
  label:      label-3
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Certificate Object; type = X.509 cert
  label:      label-3
  subject:    DN: CN=server-1
  ID:         01020304
Private Key Object; RSA 
  label:      label-3
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
* Initializing smart card libp11-test-4...ok
Importing objects to token libp11-test-4
Finished
Certificate Object; type = X.509 cert
  label:      label-4
  subject:    DN: CN=server-1
  ID:         01020304
Public Key Object; RSA 2048 bits
  label:      label-4
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Private Key Object; RSA 
  label:      label-4
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
* Initializing smart card libp11-test-5...ok
Importing objects to token libp11-test-5
Finished
Private Key Object; RSA 
  label:      label-5
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Public Key Object; RSA 2048 bits
  label:      label-5
  ID:         01020304
  Usage:      encrypt, verify, wrap
  Access:     none
Certificate Object; type = X.509 cert
  label:      label-5
  subject:    DN: CN=server-1
  ID:         01020304
Detected system: linux-gnu
Engine "pkcs11" set.
Multiple matching slots (6); will not try to login
- [1] SoftHSM slot ID 0x1032ee73: libp11-test-4
- [2] SoftHSM slot ID 0x3ea258aa: libp11-test-0
- [3] SoftHSM slot ID 0x53b74105: libp11-test-5
- [4] SoftHSM slot ID 0x61773f19: libp11-test-2
- [5] SoftHSM slot ID 0x68f82251: libp11-test-3
- [6] SoftHSM slot ID 0x7339c246: libp11-test-1
The private key was not found at: pkcs11:object=label-3;type=private;pin-value=1234
PKCS11_get_private_key returned NULL
Could not read private key from org.openssl.engine:pkcs11:pkcs11:object=label-3;type=private;pin-value=1234
401030EC577F0000:error:40000065:pkcs11 engine:ERR_ENG_error:object not found:eng_back.c:887:
401030EC577F0000:error:13000080:engine routines:ENGINE_load_private_key:failed loading private key:crypto/engine/eng_pkey.c:79:
pkeyutl: Error initializing context
./search-all-matching-tokens.softhsm: line 72:  1662 Segmentation fault      (core dumped) openssl pkeyutl -engine pkcs11 -keyform engine -inkey "${PRIVATE_KEY_WITHOUT_TOKEN}" -sign -out "${outdir}/signature.bin" -in "${outdir}/in.txt"
Engine "pkcs11" set.
./search-all-matching-tokens.softhsm: line 80:  1663 Segmentation fault      (core dumped) openssl pkeyutl -engine pkcs11 -keyform engine -inkey "${PRIVATE_KEY}" -sign -out "${outdir}/signature.bin" -in "${outdir}/in.txt"
Failed to sign file using PKCS#11 URI pkcs11:token=libp11-test-3;object=label-3;type=private;pin-value=1234
FAIL search-all-matching-tokens.softhsm (exit status: 1)

FAIL: ec-cert-store.softhsm
===========================

Current directory: /home/abuild/rpmbuild/BUILD/libp11-0.4.12/tests
Source directory: .
Output directory: output.1668
* Initializing smart card... ok
Using slot 0 with a present token (0x4f88acb0)
Using slot 0 with a present token (0x4f88acb0)
***************
Listing objects
***************
Using slot 0 with a present token (0x4f88acb0)
Private Key Object; EC
  label:      server-key
  ID:         01020304
  Usage:      decrypt, sign, unwrap
  Access:     sensitive
Certificate Object; type = X.509 cert
  label:      server-key
  subject:    DN: CN=ec
  ID:         01020304
./ec-cert-store.softhsm: line 33:  1705 Segmentation fault      (core dumped) ./store-cert ${CERTIFICATE} ${CERTIFICATE_URL} ${MODULE} "${outdir}/engines.cnf"
The certificate storing couldn't be performed
FAIL ec-cert-store.softhsm (exit status: 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant