From: Yui NARUSE Date: 2012-02-13T08:30:21+09:00 Subject: [ruby-core:42503] [Backport93 - Backport #5233][Closed] OpenSSL::SSL::SSLSocket has problems with encodings other than "ascii" Issue #5233 has been updated by Yui NARUSE. Status changed from Assigned to Closed Backported r33508 and fixed this. ---------------------------------------- Backport #5233: OpenSSL::SSL::SSLSocket has problems with encodings other than "ascii" https://bugs.ruby-lang.org/issues/5233 Author: Niklas Baumstark Status: Closed Priority: Normal Assignee: Martin Bosslet Category: Target version: 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://bugs.ruby-lang.org/