From: k@... Date: 2016-07-03T05:27:28+00:00 Subject: [ruby-core:76241] [Ruby trunk Bug#8673][Closed] User rest-client PUT request core dumped Issue #8673 has been updated by Kazuki Yamaguchi. Status changed from Open to Closed Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN I reproduced it. Thanks. https://github.com/ruby/openssl/pull/56 I believe McClain's is another bug. If it still occurs, could you make a new ticket with more information? ---------------------------------------- Bug #8673: User rest-client PUT request core dumped https://bugs.ruby-lang.org/issues/8673#change-59478 * 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: