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

name.add_entry(oid, value [, type]) => self Instance Public methods Adds

2015-04-26 14:12:26
eql?

name.eql? other => boolean Instance Public methods Returns true if name

2015-04-26 14:23:53
to_der

name.to_der => string Instance Public methods Converts the name to DER encoding

2015-04-26 14:42:02
hash

name.hash => integer Instance Public methods The hash value returned is

2015-04-26 14:30:18
parse

parse(str, template=OBJECT_TYPE_TEMPLATE) Class Public methods Alias for:

2015-04-26 13:55:21
cmp

name.cmp other => integername. other => integer Instance Public methods Compares

2015-04-26 14:18:17
to_a

name.to_a => [[name, data, type], ...] Instance Public methods Returns an

2015-04-26 14:41:14
hash_old

name.hash_old => integer Instance Public methods Returns an MD5 based hash

2015-04-26 14:35:38
parse_rfc2253

parse_rfc2253(str, template=OBJECT_TYPE_TEMPLATE) Class Public methods

2015-04-26 14:08:39
new

X509::Name.new => nameX509::Name.new(der) => nameX509::Name.new(distinguished_name)

2015-04-26 13:51:02