Type:
Class
Constants:
DEFAULT_OBJECT_TYPE : Document-const

DEFAULT_OBJECT_TYPE

The default object type for name entries.

OBJECT_TYPE_TEMPLATE : Document-const

OBJECT_TYPE_TEMPLATE

The default object type template for name entries.

COMPAT : Document-const

COMPAT

A flag for to_s.

Breaks the name returned into multiple lines if longer than 80 characters.

RFC2253 : Document-const

RFC2253

A flag for to_s.

Returns an RFC2253 format name.

ONELINE : Document-const

ONELINE

A flag for to_s.

Returns a more readable format than RFC2253.

MULTILINE : Document-const

MULTILINE

A flag for to_s.

Returns a multiline format.

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']]
to_s

name.to_s => stringname.to_s(flags) => string Instance Public methods Returns

2015-04-26 14:43:14
<=>

<=>(p1) Instance Public methods Alias for:

2015-04-26 14:11:06
parse_openssl

parse_openssl(str, template=OBJECT_TYPE_TEMPLATE) Class Public methods Also

2015-04-26 14:02:42