Sha256: 70e0de2ccc426aaf6fee788a9b9be3237ea515930faaaf007dd97f3536226ce1

Contents?: true

Size: 792 Bytes

Versions: 2

Compression:

Stored size: 792 Bytes

Contents

# frozen_string_literal: true

module Saml
  module Kit
    module Cli
      module Commands
        class Certificate < Thor
          desc 'keypair', 'Create a key pair using a self signed certificate.'
          method_option(
            :format,
            default: 'pem',
            required: false,
            enum: %w[pem env]
          )
          method_option :passphrase, default: nil, required: false
          def keypair
            GenerateKeyPair.new(
              passphrase: options[:passphrase],
              format: options[:format]
            ).run(self)
          end

          desc 'dump', 'Dump the details of a X509 Certificate.'
          def dump(raw)
            CertificateReport.new(raw).print(self)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saml-kit-cli-0.3.8 lib/saml/kit/cli/commands/certificate.rb
saml-kit-cli-0.3.7 lib/saml/kit/cli/commands/certificate.rb