Class EzCrypto::Name
In: lib/ezsig.rb
Parent: Object

A handy ruby wrapper around OpenSSL’s Name object. This was created to make it really easy to extract information out of the certificate.

Methods

[]   c   cn   common_name   country   email   l   locality   method_missing   name   new   o   organisation   organisational_unit   organization   organizational_unit   ou   province   st   state   to_s  

Public Class methods

Initializes the Name object with the underlying OpenSSL Name object. You generally do not need to use this. Rather use the Certificates subject or issuer methods.

Public Instance methods

Lookup fields in the certificate.

c()

Alias for country

cn()

Alias for common_name

The common name. For SSL this means the domain name. For personal certificates it is the name.

The 2 letter country code of the name

Returns the email if present in the name

l()

Alias for locality

The locality

name()

Alias for common_name

o()

Alias for organization

organisation()

Alias for organization

organisational_unit()

The Organization

The Organizational Unit

ou()
province()

Alias for state

st()

Alias for state

The state or province code

Returns the full name object in classic horrible X500 format.

[Validate]