RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1701233 - [RFE] support setting supported signature methods on the token
Summary: [RFE] support setting supported signature methods on the token
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: softhsm
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: rc
: 8.0
Assignee: Alexander Bokovoy
QA Contact: Kaleem
URL:
Whiteboard:
Depends On:
Blocks: 1681006 1681045 1681178 1681274 1681278 1685470 1711438
TreeView+ depends on / blocked
 
Reported: 2019-04-18 12:54 UTC by Alicja Kario
Modified: 2020-11-05 07:22 UTC (History)
4 users (show)

Fixed In Version: softhsm-2.6.0-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:50:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
verification steps with console output (9.97 KB, text/plain)
2020-07-17 11:04 UTC, Kaleem
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github opendnssec SoftHSMv2 pull 455 0 'None' closed Provide a new configuration option to allow enabling and disabling various mechanisms 2021-01-06 16:07:50 UTC

Description Alicja Kario 2019-04-18 12:54:32 UTC
Description of problem:
It's not possible to create a PKCS#11 token that will support only specific RSA signature methods (e.g. only "RSA-PKCS#1 v1.5" or only "rsassa-pss", without raw RSA).

Additional info:
This is necessary to test fallback mechanism in TLS libraries, as RSA-PSS signatures are mandatory in TLS 1.3, but not all hardware PKCS#11 tokens support them.

Comment 4 Kaleem 2020-03-31 07:14:41 UTC
Hubert,

How this change can be tested?

Comment 5 Jakub Jelen 2020-03-31 11:13:44 UTC
(In reply to Kaleem from comment #4)
> Hubert,
> 
> How this change can be tested?

Part of the upstream pull request is a test, which is invoked with `make check`. If you want a downstream test for this particular use case, you can start with the upstream configuration file for reference (token.mechanisms is the new configuration option):

https://github.com/opendnssec/SoftHSMv2/pull/455/files#diff-a6a5b67fa56bb9bc79e2bd033854b5f1

When you will have inititialized softhsm2 token, you can use pkcs11-tool to list supported mechanisms of the pkcs11 module.

pkcs11-tool -M --module /path/to/libsofthsm2.so

By default, there will be lots of mechanisms. You can try to remove some by specifying them in the above option prefixed with "-" (as described in manual page, which is also updated in this PR), or specify just limited list, which should be reflected in the list reported in pkcs11-tool.

Comment 6 Alexander Bokovoy 2020-04-01 06:28:43 UTC
Sorry, this is RHEL8 bugzilla, mixed up with RHEL7 one.

Comment 7 Alexander Bokovoy 2020-04-01 07:11:33 UTC
Will be fixed in idm:DL1 module stream build that includes softhsm-2.6.0-1.el8

Comment 12 Kaleem 2020-07-17 11:04:07 UTC
Created attachment 1701538 [details]
verification steps with console output

Comment 13 Kaleem 2020-07-17 11:05:41 UTC
Verified based on test execution done and console output attached for same in https://bugzilla.redhat.com/show_bug.cgi?id=1701233#c12 

[root@master tokens]# rpm -q softhsm
softhsm-2.6.0-3.module+el8.3.0+6909+fb33717d.x86_64
[root@master tokens]# 

For negative option, reported a bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1857272

Comment 17 errata-xmlrpc 2020-11-04 02:50:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: idm:DL1 and idm:client security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4670


Note You need to log in before you can comment on or make changes to this bug.