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 2102774 - An amendment to crypto policy to set minimal RSA key bits for openssh
Summary: An amendment to crypto policy to set minimal RSA key bits for openssh
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: crypto-policies
Version: 9.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Alexander Sosedkin
QA Contact: Ondrej Moriš
Jan Fiala
URL:
Whiteboard:
Depends On: 2066882
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-30 15:30 UTC by Dmitry Belyavskiy
Modified: 2022-11-15 12:55 UTC (History)
4 users (show)

Fixed In Version: crypto-policies-20220815-1.git0fbe86f.el9
Doc Type: Enhancement
Doc Text:
.`crypto-policies` enforce 2048-bit RSA key length minimum for OpenSSH by default Using short RSA keys makes the system more vulnerable to attacks. Because OpenSSH now supports limiting minimum RSA key length, the system-wide cryptographic policies enforce the 2048-bit minimum key length for RSA by default. If you encounter OpenSSH failing connections with an `Invalid key length` error message, start using longer RSA keys. Alternatively, you can relax the restriction by using a custom subpolicy at the expense of security. For example, if the `update-crypto-policies --show` command reports that the current policy is `DEFAULT`: . Define a custom subpolicy by inserting the `min_rsa_size@openssh = 1024` parameter into the `/etc/crypto-policies/policies/modules/RSA-OPENSSH-1024.pmod` file. . Apply the custom subpolicy using the `update-crypto-policies --set DEFAULT:RSA-OPENSSH-1024` command.
Clone Of:
Environment:
Last Closed: 2022-11-15 11:12:53 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat-crypto fedora-crypto-policies merge_requests 119 0 None merged openssh: add RSAMinSize option following min_rsa_size 2022-08-15 09:59:16 UTC
Red Hat Issue Tracker CRYPTO-7937 0 None None None 2022-07-19 15:13:28 UTC
Red Hat Issue Tracker RHELPLAN-126757 0 None None None 2022-06-30 15:40:09 UTC
Red Hat Product Errata RHBA-2022:8279 0 None None None 2022-11-15 11:13:01 UTC

Description Dmitry Belyavskiy 2022-06-30 15:30:19 UTC
Description of problem: Bug https://bugzilla.redhat.com/show_bug.cgi?id=2066882 introduces a new option MinRSABits to manage the minimal key length allowed for RSA keys for signature and verification. We need to support this option in our CP.

Comment 1 Alexander Sosedkin 2022-06-30 15:55:12 UTC
I hear it as a request for just

--- a/python/policygenerators/openssh.py
+++ b/python/policygenerators/openssh.py
@@ -210,6 +210,8 @@ class OpenSSHGenerator(ConfigGenerator):
         if s:
             cfg += f'CASignatureAlgorithms {s}\n'

+        cfg += f"MinRSABits {policy.integers['min_rsa_size']}\n"
+
         return cfg

not counting the changes in tests / reference outputs.

But as that'd conflict with openssh that doesn't recognize the option,
I can't just push that, I'll have to know the version that supports it
and mind synchronizing these updates.

Comment 11 errata-xmlrpc 2022-11-15 11:12:53 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 (crypto-policies 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/RHBA-2022:8279


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