Issue #5233 has been updated by Martin Bosslet.


Also thanks to Eric, for providing his thoughts on the topic!
----------------------------------------
Bug #5233: OpenSSL::SSL::SSLSocket has problems with encodings other than "ascii"
http://redmine.ruby-lang.org/issues/5233

Author: Niklas Baumstark
Status: Closed
Priority: Normal
Assignee: Martin Bosslet
Category: ext
Target version: 1.9.4
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