add_entry

name.add_entry(oid, value [, type]) => self Instance Public methods Adds a new entry with the given oid and value to this name. The oid is an object identifier defined in ASN.1. Some common OIDs are: C Country Name CN Common Name DC Domain Component O Organization Name OU Organizational Unit Name ST State or Province Name

cmp

name.cmp other => integername. other => integer Instance Public methods Compares this Name with other and returns 0 if they are the same and -1 or +1 if they are greater or less than each other respectively. <=>

eql?

name.eql? other => boolean Instance Public methods Returns true if name and other refer to the same hash key.

hash

name.hash => integer Instance Public methods The hash value returned is suitable for use as a certificate's filename in a CA path.

hash_old

name.hash_old => integer Instance Public methods Returns an MD5 based hash used in OpenSSL 0.9.X.

to_a

name.to_a => [[name, data, type], ...] Instance Public methods Returns an Array representation of the distinguished name suitable for passing to ::new

to_der

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

to_s

name.to_s => stringname.to_s(flags) => string Instance Public methods Returns this name as a Distinguished Name string. flags may be one of: OpenSSL::X509::Name::COMPAT OpenSSL::X509::Name::RFC2253 OpenSSL::X509::Name::ONELINE OpenSSL::X509::Name::MULTILINE

new

new(p1 = v1) Class Public methods

add_attribute

add_attribute(p1) Instance Public methods