Sha256: 342d40410ddbbe1e2c4d63097571ee21bbbd1a3e92acf80c23b5794fd57e4e7a

Contents?: true

Size: 624 Bytes

Versions: 1

Compression:

Stored size: 624 Bytes

Contents

require 'rake_factory'
require 'ruby_easy_rsa'

require_relative '../mixins/global_parameters'
require_relative '../mixins/ssl_parameters'

module RakeEasyRSA
  module Tasks
    module DH
      class Generate < RakeFactory::Task
        include Mixins::GlobalParameters
        include Mixins::SSLParameters

        default_name :generate
        default_description(
            "Generate Diffie-Hellman parameters for the PKI")

        action do |t|
          puts "Generating Diffie-Hellman parameters... "
          RubyEasyRSA.gen_dh(t.parameter_values)
          puts "Done."
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rake_easy_rsa-0.2.0.pre.6 lib/rake_easy_rsa/tasks/dh/generate.rb