[ruby-core:76714] [Ruby trunk Bug#8673][Feedback] User rest-client PUT request core dumped
From:
usa@...
Date:
2016-08-04 07:32:41 UTC
List:
ruby-core #76714
Issue #8673 has been updated by Usaku NAKAMURA.
Status changed from Closed to Feedback
----------------------------------------
Bug #8673: User rest-client PUT request core dumped
https://bugs.ruby-lang.org/issues/8673#change-59935
* Author: Hao Wei
* Status: Feedback
* 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:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>