instance method
OpenSSL::X509::Name#to_utf8
() -> ::String
name.to_utf8 → string
ext/openssl/ossl_x509name.c
View on GitHub ↗
static VALUE
ossl_x509name_to_utf8(VALUE self)
{
VALUE str = x509name_print(self, XN_FLAG_RFC2253 & ~ASN1_STRFLGS_ESC_MSB);
rb_enc_associate_index(str, rb_utf8_encindex());
return str;
}
Returns an UTF-8 representation of the distinguished name, as specified in RFC 2253.