How-to: Provide certificates to a charm

Provide certificates to a charm

In this guide, we will go through the steps neccessary to use the HTTP Request LEGO K8s for providing certificates to another charm.

Create a Juju Model:

juju add-model <your model name>

Deploy the HTTP Request Lego K8s charm:

juju deploy httprequest-lego-k8s

Configure the charm with your ACME and HTTP Request information:

juju config \
  server=<your ACME server> \
  email=<your email address> \
  httpreq_endpoint=<your HTTP Request endpoint> 

Deploy your charm that requires TLS certificates and integrate it with the HTTP Request Lego K8s charm:

juju deploy <your charm>
juju integrate <your charm> httprequest-lego-k8s