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