Sha256: ec81d88b9037051253f048c7cd4d5e5e12e46ab81d0df509a5fdf52d63be1fec

Contents?: true

Size: 628 Bytes

Versions: 19

Compression:

Stored size: 628 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'saml/kit'

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

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

19 entries across 19 versions & 1 rubygems

Version Path
saml-kit-1.3.0 exe/saml-kit-create-self-signed-certificate
saml-kit-1.2.0 exe/saml-kit-create-self-signed-certificate
saml-kit-1.1.0 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.31 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.30 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.29 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.28 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.27 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.26 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.25 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.24 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.23 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.22 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.21 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.20 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.19 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.18 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.17 exe/saml-kit-create-self-signed-certificate
saml-kit-1.0.16 exe/saml-kit-create-self-signed-certificate