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 Namecheap LEGO K8s for providing certificates to another charm.

Create a Juju Model:

juju add-model <your model name>

Deploy the Namecheap Lego K8s charm:

juju deploy namecheap-lego-k8s

Configure the charm with your ACME and Namecheap information:

juju config \
  server=<your ACME server> \
  email=<your email address> \
  namecheap-api-user=<your Namecheap API user> \
  namecheap-api-key=<your Namecheap API Key> 

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

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