[DRE-maint] Bug#900161: ruby-openssl: FTBFS against openssl 1.1.1

peter green plugwash at p10link.net
Thu Oct 4 12:10:53 BST 2018


i tried to modify the testsuite to use stronger keys (patch attatched), however after doing so the testsuite now hangs (relavent output pasted at end of message). Not sure what is going wrong here (I am neither a ruby expert or an openssl expert).

I have attached a patch with my changes so-far.


> /ruby-openssl-2.0.5/test/envutil.rb:258:in `assert_join_threads'
> Failure: test_tlsext_hostname(OpenSSL::TestSSL):
>   exceptions on 2 threads:
> #<Thread:0x0000557c8bd59848@/ruby-openssl-2.0.5/test/utils.rb:443 dead>:
>   /ruby-openssl-2.0.5/test/test_ssl.rb:654:in `connect': SSL_connect returned=1 errno=0 state=error: sslv3 alert handshake failure (OpenSSL::SSL::SSLError)
>         from /ruby-openssl-2.0.5/test/test_ssl.rb:654:in `block in test_tlsext_hostname'
>         from /ruby-openssl-2.0.5/test/utils.rb:445:in `block (2 levels) in start_server'
>   ---
> #<Thread:0x0000557c8bd59938@/ruby-openssl-2.0.5/test/utils.rb:432 dead>:
> /ruby-openssl-2.0.5/debian/ruby-openssl/usr/lib/ruby/vendor_ruby/openssl/ssl.rb:382:in `accept': SSL_accept returned=1 errno=0 state=error: no suitable signature algorithm (OpenSSL::SSL::SSLError)
>         from /ruby-openssl-2.0.5/debian/ruby-openssl/usr/lib/ruby/vendor_ruby/openssl/ssl.rb:382:in `accept'
>         from /ruby-openssl-2.0.5/test/utils.rb:383:in `block in server_loop'
>         from /ruby-openssl-2.0.5/test/utils.rb:376:in `loop'
>         from /ruby-openssl-2.0.5/test/utils.rb:376:in `server_loop'
>         from /ruby-openssl-2.0.5/test/utils.rb:434:in `block (2 levels) in start_server'
> =====================================================================================================================================================================
> : (0.010154)
> test_unset_OP_ALL: .: (0.059083)
> test_verify_certificate_identity: .: (0.008254)
> test_verify_hostname: .: (0.007457)
> test_verify_hostname_on_connect: .: (0.065102)
> test_verify_result: .: (0.026004)
> test_verify_wildcard: .: (0.005284)
>     OpenSSL::TestSSLSession:
> test_client_session: #<Thread:0x0000557c8bd87ce8@/ruby-openssl-2.0.5/test/utils.rb:443 run> terminated with exception (report_on_exception is true):
> Traceback (most recent call last):
>         9: from /ruby-openssl-2.0.5/test/utils.rb:445:in `block (2 levels) in start_server'
>         8: from /ruby-openssl-2.0.5/test/test_ssl_session.rb:158:in `block in test_client_session'
>         7: from /ruby-openssl-2.0.5/test/test_ssl_session.rb:158:in `times'
>         6: from /ruby-openssl-2.0.5/test/test_ssl_session.rb:168:in `block (2 levels) in test_client_session'
>         5: from /usr/lib/ruby/vendor_ruby/test/unit/assertions.rb:130:in `assert'
>         4: from /usr/lib/ruby/vendor_ruby/test/unit/assertions.rb:1636:in `_wrap_assertion'
>         3: from /usr/lib/ruby/vendor_ruby/test/unit/assertions.rb:163:in `block in assert'
>         2: from /usr/lib/ruby/vendor_ruby/test/unit/assertions.rb:53:in `assert_block'
>         1: from /usr/lib/ruby/vendor_ruby/test/unit/assertions.rb:1631:in `_wrap_assertion'
> /usr/lib/ruby/vendor_ruby/test/unit/assertions.rb:55:in `block in assert_block': <false> is not true. (Test::Unit::AssertionFailedError)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-use-stronger-keys-in-tests.patch
Type: text/x-diff
Size: 11293 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20181004/e61278a8/attachment.patch>


More information about the Pkg-ruby-extras-maintainers mailing list