Sha256: 3e8996bd3aa5669b30b98e01c1e2fa0a439b2aa345397e72c67377ea05b0532e

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

require 'rspec'
require 'openid_connect'

require 'helpers/webmock_helper'

def rsa
  @rsa ||= OpenSSL::PKey::RSA.generate 2048
end

def public_key
  @public_key ||= rsa.public_key
end

def private_key
  @private_key ||= OpenSSL::PKey::RSA.new rsa.export(OpenSSL::Cipher::Cipher.new('aes-256-cbc'), 'pass-phrase'), 'pass-phrase'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openid_connect-0.0.18 spec/spec_helper.rb
openid_connect-0.0.17 spec/spec_helper.rb