Sha256: 54c4cc68f96fdd5681fad31bcaf82ba186047c999ef7e678b4d8f18ea02ec790
Contents?: true
Size: 822 Bytes
Versions: 40
Compression:
Stored size: 822 Bytes
Contents
#!/usr/bin/env ruby require "pathname" bin_file = Pathname.new(__FILE__).realpath $:.unshift File.expand_path("../../lib", bin_file) require 'soar_authentication_token' require 'yaml' require 'json' class Main def generate_keypair #create and configure auditing instance keypair_generator = SoarAuthenticationToken::KeypairGenerator.new private_key, public_key = keypair_generator.generate configuration = { 'private_key' => private_key, 'public_key' => public_key } puts "------------" puts "YAML Format:" puts "------------" print configuration.to_yaml puts "" puts "------------" puts "JSON Format:" puts "------------" print configuration.to_json puts "" puts "" puts "------------" end end main = Main.new main.generate_keypair
Version data entries
40 entries across 40 versions & 1 rubygems