DefangLabs / cloudacme

Tools to simplify acme ssl certificate generation and storage with native cloud tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloud Acme Lambda Function

Cloud acme lambda function is a simple project designed to be working with cloud service providers to allow the issuing, renewing and importing of SSL certificates to the users infrastructure.

Currently it only supports AWS lambda and provides HTTP01 challenge support by setting up ALB rules.

It makes the following assumption:

  1. There is already a self signed SSL cert in ACM and it is attached to the ALB.
  2. The labmda function is triggered by an ALB listener on port 80 with the follow rules:
    • Host header condition matching the domain name
    • Path condition for "/"
  3. The lambda function has the correct permissions to operate with:
  • ACM for listing and importing certificates
  • ALB for find, adding and removal of rules
  1. The trigger will be removed after a successful import of the certificate.

Certificate renewal

The certificate renewal can be triggered by an event bridge scheduled event with a payload in the below format:

{
  "domain": "example.com",
  "albArn":"arn:aws:elasticloadbalancing:123456789012:certificate/12345678-1234-1234-1234-123456789012"
}

About

Tools to simplify acme ssl certificate generation and storage with native cloud tools

License:MIT License


Languages

Language:Go 97.5%Language:Makefile 2.5%