https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112011-07-17T04:35:49ZRuby Issue Tracking SystemRuby master - Bug #4961: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7https://redmine.ruby-lang.org/issues/4961?journal_id=192022011-07-17T04:35:49ZMartinBosslet (Martin Bosslet)Martin.Bosslet@gmail.com
<ul></ul><p>OK, I found it. The Base64-encoded session in test_ssl_session.rb contains the field</p>
<p>tlsext_tick [10] OCTET STRING OPTIONAL</p>
<p>This was added with TLS and is not recognized by OpenSSL 0.9.7 yet. So this issue can be fixed<br>
by updating test_ssl_session.rb. I'll change the current Base64 session. Then I'll add another<br>
one that is used only when OpenSSL >= 0.9.8, including the tslext_tick field.</p> Ruby master - Bug #4961: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7https://redmine.ruby-lang.org/issues/4961?journal_id=192042011-07-17T08:02:44ZAnonymous
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r32563.<br>
Martin, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>test/openssl/test_ssl_session.rb: add PEM SSL session without TLS<br>
extensions. Use this as the default for the tests to ensure<br>
compatibility with OpenSSL 0.9.7.<br>
[ Ruby 1.9 - Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7 (Closed)" href="https://redmine.ruby-lang.org/issues/4961">#4961</a> ] <a href="/issues/4961">[ruby-core:37726]</a></li>
</ul> Ruby master - Bug #4961: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7https://redmine.ruby-lang.org/issues/4961?journal_id=196392011-07-25T16:04:50Znahi (Hiroshi Nakamura)nakahiro@gmail.com
<ul></ul><p>Martin Bosslet wrote:</p>
<blockquote>
<p>OK, I found it. The Base64-encoded session in test_ssl_session.rb contains the field</p>
<p>tlsext_tick [10] OCTET STRING OPTIONAL</p>
<p>This was added with TLS and is not recognized by OpenSSL 0.9.7 yet. So this issue can be fixed<br>
by updating test_ssl_session.rb. I'll change the current Base64 session. Then I'll add another<br>
one that is used only when OpenSSL >= 0.9.8, including the tslext_tick field.</p>
</blockquote>
<p>My bad. It's me who added the test data... Thank you.</p> Ruby master - Bug #4961: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7https://redmine.ruby-lang.org/issues/4961?journal_id=208932011-09-19T15:33:29Znormalperson (Eric Wong)normalperson@yhbt.net
<ul></ul><p>I'm getting the following error on CentOS 5.6, perhaps the version check needs<br>
to be bumped? I am using: OpenSSL 0.9.8e-rhel5 01 Jul 2008</p>
<ol>
<li>Error:<br>
test_session_exts_read(OpenSSL::TestSSLSession):<br>
ArgumentError: unknown type: expecting an asn1 sequence<br>
test/openssl/test_ssl_session.rb:113:in <code>initialize' test/openssl/test_ssl_session.rb:113:in </code>new'<br>
test/openssl/test_ssl_session.rb:113:in `test_session_exts_read'</li>
</ol>
<p>ruby 1.9.3dev (2011-09-17 revision 33290) [x86_64-linux]<br>
OPENSSL_VERSION_NUMBER = 0x90802f</p>
<p>On Debian Squeeze with OpenSSL 0.9.8o, I do not see this.</p> Ruby master - Bug #4961: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7https://redmine.ruby-lang.org/issues/4961?journal_id=209352011-09-22T12:12:23ZMartinBosslet (Martin Bosslet)Martin.Bosslet@gmail.com
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li></ul><p>Thanks Eric, I'll try to sort out the correct version of 0.9.8!</p> Ruby master - Bug #4961: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7https://redmine.ruby-lang.org/issues/4961?journal_id=209482011-09-23T13:51:24ZAnonymous
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>This issue was solved with changeset r33315.<br>
Martin, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>test/openssl/test_ssl_session.rb: execute test_session_exts_read<br>
only for OpenSSL versions >= 0.9.8k. Thanks, Eric Wong, for<br>
reporting this.<br>
[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: [ext/openssl] SSLSession#initialize fails with OpenSSL 0.9.7 (Closed)" href="https://redmine.ruby-lang.org/issues/4961">#4961</a>] <a href="/issues/4961">[ruby-core:37726]</a></li>
</ul>