Class: OpenSSL::X509::Name
Constant Summary collapse
- ASN1_STRFLGS_ESC_MSB =
4- FLAGS =
if RUBY_PLATFORM == 'java' OpenSSL::X509::Name::RFC2253 else OpenSSL::X509::Name::RFC2253 & ~ASN1_STRFLGS_ESC_MSB end
Instance Method Summary collapse
Instance Method Details
#to_utf8 ⇒ Object
97 98 99 100 101 |
# File 'lib/puppet/util/monkey_patches.rb', line 97 def to_utf8 # https://github.com/ruby/ruby/blob/v2_5_5/ext/openssl/ossl_x509name.c#L317 str = to_s(FLAGS) str.force_encoding(Encoding::UTF_8) end |