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 2069495 - fatal: mm_answer_sign: sign: error in libcrypto - ssh-rsa-cert-v01
Summary: fatal: mm_answer_sign: sign: error in libcrypto - ssh-rsa-cert-v01@openssh.com
Keywords:
Status: CLOSED DUPLICATE of bug 2068423
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: openssh
Version: CentOS Stream
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Dmitry Belyavskiy
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-29 04:03 UTC by ifelmail@gmail.com
Modified: 2022-03-29 11:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-29 07:33:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-117064 0 None None None 2022-03-29 04:07:06 UTC

Description ifelmail@gmail.com 2022-03-29 04:03:28 UTC
Description of problem:
I'm trying to use a particular HostKeyAlgorithm - ssh-rsa-cert-v01 to connect to CentOS 9 machine (it works for C8 just fine). Both the server and client support the algorithm, however the connection fails.
In the server log, I can see this error:
Mar 28 20:19:43 <hostname.was.here> sshd[4119562]: fatal: mm_answer_sign: sign: error in libcrypto

Other protocols (at least rsa-sha2-512) work.

Version-Release number of selected component (if applicable):
openssh-server-8.7p1-8.el9.x86_64
openssl-libs-3.0.1-17.el9.x86_64
openssl-3.0.1-17.el9.x86_64


How reproducible:
Always

Steps to Reproduce:
1. [Optional, if you do not do this, the command in #2 still forces the algorithm, but if you do all ssh connections will try to use this algo and fail] On the server add to the /etc/ssh/sshd_config: "HostKeyAlgorithms ssh-rsa-cert-v01", restart the service with "systemctl restart sshd". Note, if you close the session you will not be able to ssh to the machine again.
2. On the client run: "ssh <server.name.here> -o HostKeyAlgorithms=ssh-rsa-cert-v01 'cat /etc/redhat-release'

Actual results:
Connection closed by <ip:addr::here> port 22


Expected results:
CentOS Stream release 9

Additional info:
There is a similar bug was open with OpenSSL, they suggested to open a bug with you: https://githubmemory.com/repo/openssl/openssl/issues/17963, but it seems the reporter decided to use another algo.

Comment 1 Dmitry Belyavskiy 2022-03-29 07:33:13 UTC
Many thanks for your report!

ssh-rsa is an insecure nowadays signature type, the modern ones are rsa-sha2-*. We disabled support of it via libcrypto in CentOS 9, though diagnostics should be improved for clarity.

*** This bug has been marked as a duplicate of bug 2068423 ***


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