Issue #8673 has been updated by drbrain (Eric Hodel).

Assignee set to MartinBosslet (Martin Bosslet)

Can you include your OpenSSL version? For example, mine is:

$ ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
"OpenSSL 1.0.1e 11 Feb 2013"

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

Author: gabrielwei (Hao Wei)
Status: Open
Priority: Normal
Assignee: MartinBosslet (Martin Bosslet)
Category: core
Target version: 
ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: 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")


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