create_cert_email(email, key, age = ONE_YEAR, extensions = EXTENSIONS)
public
Creates a self-signed certificate with an issuer and subject from
email, a subject alternative name of email and the given
extensions for the key.
# File lib/rubygems/security.rb, line 444
def self.create_cert_email email, key, age = ONE_YEAR, extensions = EXTENSIONS
subject = email_to_name email
extensions = extensions.merge "subjectAltName" => "email:#{email}"
create_cert_self_signed subject, key, age, extensions
end