From: Niklas Baumstark Date: 2011-08-26T20:45:54+09:00 Subject: [ruby-core:39120] [Ruby 1.9 - Bug #5233][Open] OpenSSL::SSL::SSLSocket has problems with encodings other than "ascii" Issue #5233 has been reported by Niklas Baumstark. ---------------------------------------- Bug #5233: OpenSSL::SSL::SSLSocket has problems with encodings other than "ascii" http://redmine.ruby-lang.org/issues/5233 Author: Niklas Baumstark Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] The attached script shows the issue. It expects a combined cert/private key in the file server.pem under the current directory (also attached). Under Ruby 1.9.2p290, the script prints "str.size is 50848 (expecting 100000)". As a workaround the string encoding can be forced to "ascii" before the write. -- http://redmine.ruby-lang.org