Class: Porkadot::Assets::Certs::FrontProxy
- Inherits:
-
Object
- Object
- Porkadot::Assets::Certs::FrontProxy
- Includes:
- Porkadot::Assets::CertsUtils
- Defined in:
- lib/porkadot/assets/certs/front_proxy.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#global_config ⇒ Object
readonly
Returns the value of attribute global_config.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #ca_name ⇒ Object
- #client_name ⇒ Object
-
#initialize(global_config) ⇒ FrontProxy
constructor
A new instance of FrontProxy.
Methods included from Porkadot::Assets::CertsUtils
#_ca_cert, #_client_cert, #ca_cert, #ca_key, #client_cert, #client_key, #private_key, #public_key, #random_number, #to_base64, #to_pem, #unsigned_cert
Constructor Details
#initialize(global_config) ⇒ FrontProxy
Returns a new instance of FrontProxy.
8 9 10 11 12 |
# File 'lib/porkadot/assets/certs/front_proxy.rb', line 8 def initialize global_config @config = Porkadot::Configs::Certs::FrontProxy.new(global_config) @logger = config.logger @global_config = config.config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/porkadot/assets/certs/front_proxy.rb', line 5 def config @config end |
#global_config ⇒ Object (readonly)
Returns the value of attribute global_config.
4 5 6 |
# File 'lib/porkadot/assets/certs/front_proxy.rb', line 4 def global_config @global_config end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
6 7 8 |
# File 'lib/porkadot/assets/certs/front_proxy.rb', line 6 def logger @logger end |
Instance Method Details
#ca_name ⇒ Object
14 15 16 |
# File 'lib/porkadot/assets/certs/front_proxy.rb', line 14 def ca_name '/CN=front-proxy-ca' end |
#client_name ⇒ Object
18 19 20 |
# File 'lib/porkadot/assets/certs/front_proxy.rb', line 18 def client_name '/CN=aggregator-client' end |