Overview
This gem is an implementation of the ACME http-01 challenge for use in Rails applications.
Installation
# Gemfile
gem 'acme-authorizer'
NOTE: the ACME http-01 challenge/response must be served over HTTP without
SSL. The ACME URL endpoint will opt out of config.force_ssl
if it is set
using config.ssl_options
.
Configuration
By default, this library is configured via pairs of ENV variables with the same format used by sabayon:
/ACME_TOKEN_[0-9]+/
/ACME_KEY_[0-9]+/
for example:
ACME_TOKEN_0=123123
ACME_KEY_0=123123
The challenge and token can also be configured via Ruby API.
Acme::Authorizer.configure do |config|
config.add_token('my_challenge_token', 'my_key_authorization')
end