new

X509::Name.new => name
X509::Name.new(der) => name
X509::Name.new(distinguished_name) => name
X509::Name.new(distinguished_name, template) => name
Class Public methods

Creates a new Name.

A name may be created from a DER encoded string der, an Array representing a distinguished_name or a distinguished_name along with a template.

name = OpenSSL::X509::Name.new [['CN', 'nobody'], ['DC', 'example']]

name = OpenSSL::X509::Name.new name.to_der

See #add_entry for a description of the distinguished_name Array's contents

doc_ruby_on_rails
2015-04-26 13:51:02
Comments
Leave a Comment

Please login to continue.