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_key ⇒ Object
6 7 8 9 |
# File 'lib/authify/core/helpers/jwt_ssl.rb', line 6 def private_key path = File.(CONFIG[:ssl][:private]) OpenSSL::PKey::EC.new File.read(path) end |
#public_key ⇒ Object
11 12 13 14 |
# File 'lib/authify/core/helpers/jwt_ssl.rb', line 11 def public_key path = File.(CONFIG[:ssl][:public]) OpenSSL::PKey::EC.new File.read(path) end |