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 912522 - subversion+gnutls client cannot talk to subversion+openssl server: wrong signature length
Summary: subversion+gnutls client cannot talk to subversion+openssl server: wrong sign...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gnutls
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Nikos Mavrogiannopoulos
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-18 21:27 UTC by Graham Leggett
Modified: 2015-01-29 14:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-29 14:04:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Graham Leggett 2013-02-18 21:27:04 UTC
When an attempt is made to use the subversion client on RHEL6 to check out code hosted on a client certificate protected server running subversion with httpd's mod_ssl linked to openssl, the attempt to connect fails with an SSL error:

error:04091077:rsa routines:INT_RSA_VERIFY:wrong signature length

This problem affects some people consistently, but others aren't affected at all using the same client and same server.

It turns out in our case that people who have client certificates issued by intermediate CA X are allowed in correctly without a problem, while people who have client certificates issued by intermediate CA Y trigger the error message as above. Reissuing certs makes no difference, which leads us to believe it is the intermediate certificate in use that triggers the error.

We have found the following gnutls bug that described our symptoms exactly:

http://gnupg.10057.n7.nabble.com/gnutls-devel-RSAES-PKCS1-v1-5-incompatible-behavior-td29258.html

In the thread above a fix was committed here:

https://gitorious.org/gnutls/gnutls/commit/7730c6cba3e4d5e1d2c4acf3f433125910635a6e

Looking closer at the intermediate certificate that consistently fails, we see the public key modulus does start with a leading zero:

        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (4096 bit)
                Modulus:
                    00:89:ea:3f:6d:05:05:e1:92:e9:df:80:88:90:43:
                    ^^

Comment 2 Graham Leggett 2013-02-23 14:33:25 UTC
I tried to backport the patch applied above, but the gnutls code has been heavily refactored so I am not confident what I was doing was correct.

I worked around the problem by rebuilding the neon SRPM to link against openssl instead of gnutls, and the problem went away.

Comment 4 RHEL Program Management 2013-10-13 23:55:56 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 5 Gerwin Krist 2013-12-18 14:54:27 UTC
Hi,

Well the problem is that this problem will occur for all programs linked to gnutls. I'm having the same problem with Filezilla and TLS connections. It's simple not working with the version shipped with 6.5. 

Using Gnutls 2.12 does work.

- Gerwin

Comment 9 Nikos Mavrogiannopoulos 2015-01-29 12:28:31 UTC
I am unable to reproduce the issue based on the provided description. If you have some example keys or certificates that reproduce them please attach them to the bug report.

Comment 10 Gerwin Krist 2015-01-29 13:53:05 UTC
@Nikos the initial error is gone now. I cannot reproduce it either anymore with Filezilla.

Although https://bugzilla.redhat.com/show_bug.cgi?id=1029485 is the next one which pops-up. But that's another story :-)

Comment 11 Nikos Mavrogiannopoulos 2015-01-29 14:04:43 UTC
Thanks. Then I'm closing the issue. The filezilla bug seems unrelated.


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