checkin of initial letsencrypt code

This commit is contained in:
Kyle Drake 2016-06-16 01:42:16 -07:00
parent 6a8aaacd20
commit 8473b99d56
11 changed files with 117 additions and 0 deletions

View file

@ -152,3 +152,10 @@ end
gandi_opts = {}
gandi_opts[:env] = :test unless ENV['RACK_ENV'] == 'production'
$gandi = Gandi::Session.new $config['gandi_api_key'], gandi_opts
# Let's Encrypt
$letsencrypt = Acme::Client.new(
private_key: OpenSSL::PKey::RSA.new(File.read($config['letsencrypt_key'])),
endpoint: $config['letsencrypt_endpoint']
)