Bug 2118601
| Summary: | Token data are not accessible after upgrading from RHEL-8.7 to RHEL-9.0 | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Karel Srot <ksrot> | |
| Component: | opencryptoki | Assignee: | Than Ngo <than> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Karel Srot <ksrot> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.0 | CC: | bugproxy, dapospis, dhorak, toneata | |
| Target Milestone: | rc | Keywords: | Triaged, ZStream | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | No Doc Update | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2127873 2127879 (view as bug list) | Environment: | ||
| Last Closed: | 2022-09-19 13:24:27 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2089955, 2127873, 2127879 | |||
|
Description
Karel Srot
2022-08-16 08:54:54 UTC
According to my testing the issue is not caused by the different config file itself. Even after restoring the configuration file token data cannot be accessed. # pkcsconf -t Token #3 Info: Label: softtok Manufacturer: IBM Model: Soft Serial Number: Flags: 0x80004D (RNG|LOGIN_REQUIRED|USER_PIN_INITIALIZED|CLOCK_ON_TOKEN|SO_PIN_TO_BE_CHANGED) Sessions: 0/[effectively infinite] R/W Sessions: [information unavailable]/[effectively infinite] PIN Length: 4-8 Public Memory: [information unavailable]/[information unavailable] Private Memory: [information unavailable]/[information unavailable] Hardware Version: 0.0 Firmware Version: 0.0 Time: 2022081608112700 # pkcs11-tool -v --module /usr/lib64/opencryptoki/libopencryptoki.so --list-objects Using slot 0 with a present token (0x3) Expected: # pkcs11-tool -v --module /usr/lib64/opencryptoki/libopencryptoki.so --list-objects Using slot 3 with a present token (0x3) Public Key Object; RSA 3072 bits label: id_rsa.pub ID: 4bb238050c2aaefbd01e0a983188b4198b2fb392 Usage: encrypt, verify, wrap Access: local Hello IBM, may I kindly ask for a review? Is it expected that token data populated with opencryptoki v3.18 would be accessible by opencryptoki v3.17? Hi Karel, in my understanding the token data which is populated with opencryptoki v3.18 should be accessible by opencryptoki v3.17 if it is the same token data format. Hi Than, I have realized that I did a mistake during my testing and forgot to restart pkcsslotd after restoring opencryptoki.conf from backup. I have tested your scratch build and can confirm that it works well. |