From: Martin Bosslet Date: 2011-12-22T09:41:11+09:00 Subject: [ruby-core:41769] [ruby-trunk - Feature #5787][Assigned] OpenSSL::X509::Name#to_a Improvement (Patch Attached) Issue #5787 has been updated by Martin Bosslet. Status changed from Open to Assigned Assignee set to Martin Bosslet Target version set to 2.0.0 That's a good idea, Paul, thanks. It's also in line with RFC 4514 (the former 2253). I'll have to check whether this causes problems when again parsing such a string representation and probably fix that, too. But once that's done I'm going to apply your patch. ---------------------------------------- Feature #5787: OpenSSL::X509::Name#to_a Improvement (Patch Attached) https://bugs.ruby-lang.org/issues/5787 Author: Paul Kehrer Status: Assigned Priority: Normal Assignee: Martin Bosslet Category: ext Target version: 2.0.0 In ruby 1.8/1.9/trunk the OpenSSL::X509::Name#to_a method attempts to map OIDs to short names. If an OID has no associated shortname this causes it to return the string "UNDEF". It would be much more useful if it returned the OID in this situation. I've written a patch and test for the patch and attached it to this bug in unified diff format. You can also see the change at https://github.com/reaperhulk/ruby/commit/ff74d5c496fc6e71daa793c5baf7a24b0f2e7f98 -- http://redmine.ruby-lang.org