class

OpenSSL::X509::Name

v2_5_5 - Show latest stable - Superclass: Object

An X.509 name represents a hostname, email address or other entity associated with a public key.

You can create a Name by parsing a distinguished name String or by supplying the distinguished name as an Array.

name = OpenSSL::X509::Name.parse 'CN=nobody/DC=example'

name = OpenSSL::X509::Name.new [['CN', 'nobody'], ['DC', 'example']]

Included modules

  • Comparable

Constants

COMPAT = ULONG2NUM(XN_FLAG_COMPAT)

DEFAULT_OBJECT_TYPE = utf8str

MULTILINE = ULONG2NUM(XN_FLAG_MULTILINE)

OBJECT_TYPE_TEMPLATE = hash

ONELINE = ULONG2NUM(XN_FLAG_ONELINE)

RFC2253 = ULONG2NUM(XN_FLAG_RFC2253)

Files

  • ext/openssl/lib/openssl/x509.rb
  • ext/openssl/ossl_x509attr.c