#!/usr/bin/env ruby require 'saml/kit' password = STDIN.read.strip certificate, private_key = Saml::Kit::SelfSignedCertificate.new(password).create puts "** BEGIN File Format **" print certificate puts private_key puts "***********************" puts puts "*** BEGIN ENV Format **" puts certificate.inspect puts private_key.inspect puts "***********************" puts puts "Private Key Password:" puts password.inspect