module CaHelper
Public Class Methods
ca()
click to toggle source
# File lib/tasks/helper.rb, line 22 def self.ca @ca ||= R509::CertificateAuthority::Signer.new pool['rcv_spec_ca'] end
csr()
click to toggle source
# File lib/tasks/helper.rb, line 7 def self.csr R509::CSR.new( subject: { C: 'US', ST: 'Florida', L: 'Miami', O: 'r509-cert-validator', CN: 'localhost' }, bit_length: 512, type: 'RSA', message_digest: 'sha1' ) end
options_builder()
click to toggle source
# File lib/tasks/helper.rb, line 26 def self.options_builder @builder ||= R509::CertificateAuthority::OptionsBuilder.new pool['rcv_spec_ca'] end
pool()
click to toggle source
# File lib/tasks/helper.rb, line 30 def self.pool @pool ||= R509::Config::CAConfigPool.from_yaml( 'certificate_authorities', File.read('spec/support/ca/config.yaml') ) end