method

build_cert

Importance_0
v2_5_5 - Show latest stable - 0 notes - Class: CertCommand
build_cert(email, key) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/cert_command.rb, line 136
  def build_cert email, key # :nodoc:
    expiration_length_days = options[:expiration_length_days]
    age =
      if expiration_length_days.nil? || expiration_length_days == 0
        Gem::Security::ONE_YEAR
      else
        Gem::Security::ONE_DAY * expiration_length_days
      end

    cert = Gem::Security.create_cert_email email, key, age
    Gem::Security.write cert, "gem-public_cert.pem"
  end
Register or log in to add new notes.