Module: Authify::Core::Helpers::JWTSSL

Defined in:
lib/authify/core/helpers/jwt_ssl.rb

Overview

Helpers for accessing the SSL certs used for JWT

Instance Method Summary collapse

Instance Method Details

#private_keyObject



6
7
8
9
# File 'lib/authify/core/helpers/jwt_ssl.rb', line 6

def private_key
  path = File.expand_path(CONFIG[:ssl][:private])
  OpenSSL::PKey::EC.new File.read(path)
end

#public_keyObject



11
12
13
14
# File 'lib/authify/core/helpers/jwt_ssl.rb', line 11

def public_key
  path = File.expand_path(CONFIG[:ssl][:public])
  OpenSSL::PKey::EC.new File.read(path)
end