Sha256: c9b1f0b48553d2d9753cccb8efd7e5027cfeb372968b441d0bc24cbd13fe4387

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

Stored size: 569 Bytes

Contents

#!/usr/bin/env ruby
require 'saml/kit'

Saml::Kit.deprecate("Use the 'saml-kit-cli' gem instead. saml-kit-create-self-signed-certificate")

puts 'Enter Passphrase:'
passphrase = STDIN.read.strip
certificate, private_key = ::Xml::Kit::SelfSignedCertificate.new.create(passphrase: passphrase)

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 Passphrase:'
puts passphrase.inspect

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
saml-kit-1.0.9 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.8 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.7 exe/saml-kit-create-self-signed-certificate