Module: Anchor
- Defined in:
- lib/anchor.rb,
lib/anchor/oid.rb,
lib/anchor/version.rb,
lib/anchor/pem_bundle.rb,
lib/anchor/auto_cert/railtie.rb,
lib/anchor/auto_cert/configuration.rb
Overview
Anchor module is the top-level namespace for the Anchor PKI client.
Defined Under Namespace
Modules: AutoCert, Oid Classes: PemBundle
Constant Summary collapse
- ENV_VARS =
{ directory: %w[ACME_DIRECTORY ACME_DIRECTORY_URL], eab_kid: %w[ACME_KID ACME_EAB_KID], eab_hmac_key: %w[ACME_HMAC_KEY ACME_EAB_HMAC_KEY], server_names: %w[ACME_SERVER_NAME ACME_SERVER_NAMES SERVER_NAME SERVER_NAMES ACME_ALLOW_IDENTIFIERS] }.freeze
- VERSION =
'0.8.0'
Class Method Summary collapse
Class Method Details
.add_cert(pem) ⇒ Object
16 17 18 |
# File 'lib/anchor.rb', line 16 def self.add_cert(pem) (@certs ||= []) << OpenSSL::X509::Certificate.new(pem) end |
.cert_store ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/anchor.rb', line 20 def self.cert_store @cert_store ||= OpenSSL::X509::Store.new.tap do |store| (@certs || []).each do |cert| store.add_cert(cert) end end end |