Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 2.88 KB

README.md

File metadata and controls

64 lines (34 loc) · 2.88 KB

Integration examples

This repo provides examples for how to issue HTTPS certificates for getlocalcert subdomain names using various ACME clients.

You can use the example code as a quick start for your own projects. For more details, please see the documentation site.

Examples

Caddy

Register and Issue using Caddy

Sample code

LEGO

Register and Issue using LEGO

Sample code

Issue using delegate domain

Sample code

Traefik

Register and Issue using Traefik

Sample code

cert-manager

Register and Issue using cert-manager

Sample code

acme.sh

Register and Issue using acme.sh

Sample code

Issue cert for an existing domain

Sample code

Testing

A daily workflow runs to run the example code and issue a Let's Encrypt staging certificate. This helps detect incompatibility between the ACME clients and the getlocalcert service.

Running tests locally

The tests can be run locally using act.

./act -l
./act -s [email protected] -j register-and-issue

Sometimes we need to customize the container:

./act -s [email protected] -j lego-register-and-issue -P ubuntu-latest=golang:latest

A couple of the tests don't work with act. The Traefik example ends up being a tricky docker-in-docker example, which would be too ugly to support.