Sha256: 8b9269ea68886e4577a07437a1ffa27d207b7aa273fab8f75073e03035d545c2

Contents?: true

Size: 784 Bytes

Versions: 7

Compression:

Stored size: 784 Bytes

Contents

#!/usr/bin/env ruby
require "#{File.dirname(__FILE__)}/../config/boot"
require 'optparse'

# This hash will hold all of the options
options = {}

optparse = OptionParser.new do|opts|
  opts.banner  = "Generate a self signed certifcate for development purpose or not signed apps. \n"
  opts.banner += "Usage: script/certificate -p xyz"

  options[:password] = nil
  opts.on( '-p', '--password PASSWORD', 'Your secret PASSWORD for cert' ) do |password|
    options[:password] = password
  end

  # help screen
  opts.on( '-h', '--help', 'Help screen' ) do
    puts opts
    exit
  end
end
optparse.parse!

system "#{MoonwalkAir.air_bin}/adt -certificate -cn SelfSigned 1024-RSA #{MoonwalkAir.config}/cert.pfx #{options[:password]}"
puts "successfuly generated cert.pfx in config folder"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
moonwalkair-0.4.1 lib/moonwalkair/templates/script/certificate
moonwalkair-0.4.0 lib/moonwalkair/templates/script/certificate
moonwalkair-0.3.2 lib/moonwalkair/templates/script/certificate
moonwalkair-0.3.1 lib/moonwalkair/templates/script/certificate
moonwalkair-0.3.0 lib/moonwalkair/templates/script/certificate
moonwalkair-0.2.0 lib/moonwalkair/templates/script/certificate
moonwalkair-0.1.0 lib/moonwalkair/templates/script/certificate