Issue #8673 has been updated by Kazuki Yamaguchi.

Status changed from Feedback to Closed

Fixed by 66c1da57eb03 at new upstream[1] and imported by r56027 ("import Ruby/OpenSSL 2.0.0.beta.1").

[1]: https://github.com/ruby/openssl/commit/66c1da57eb03c19f96f3f1c843ea2a93dca3d243

----------------------------------------
Bug #8673: User rest-client PUT request core dumped
https://bugs.ruby-lang.org/issues/8673#change-61040

* Author: Hao Wei
* Status: Closed
* Priority: Normal
* Assignee: openssl
* ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
1. use OpenSSL::X509::Certificate.new generate certificate object
2. create client = RestClient::Resource.new object
3. use client PUT request, then server crashed
code is like as below:
    certificate = OpenSSL::X509::Certificate.new(File.read('file.pem'))

    client = RestClient::Resource.new(URL, 
      :ssl_client_cert => certificate,
      :ssl_client_key => certificate.public_key,
      :verify_ssl => OpenSSL::SSL::VERIFY_PEER,
      :ssl_ca_file => 'ca-cert.pem')
    response = client.put(xml.to_xml, :content_type =>"application/xml")

---Files--------------------------------
crash_log.log (253 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>