Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.25 KB

File metadata and controls

26 lines (21 loc) · 1.25 KB

seven_digital_acme_helper

The concept of this cookbook is that you will have two types of server:

  1. A server who is responsible for renewing certificates (i.e. managing validation requests from letsencrypt) which will push the cert to an encrypted databag
  2. Servers who retrieve the certs from the databag.

As the servers who retrieve the certs from the databag are the ones who will be serving the address we want the cert for (i.e. will receive the validation request from LetsEncrypt! they will need a redirect to the address of the renewal server. Consider:

Server 1 (Renewal Server):
  FQDN: letsencrypt.example.com
  Nginx installed serving letsencrypt.example.com on 80
Server 2 (Web Server):
  FQDN example.com
  Nginx serving example.com on 80 and 443
    Configuration:
      REDIRECT /.well-known/acme-challenge TO letsencrypt.example.com/.wellknown/acme-challenge/

Pre-requisites

  1. The databag and databag item must already exist. Each domain has its own databag item which is named as 'example.com'.gsub(/[^a-zA-Z\-_0-9]/, '_')
  2. The databag must give permission to the node which is uploading the certs to the databag item (the authorisation server) 'update' permissions.

TODO

Ensure that databag only gets updated when the certificate updates