canonical / self-signed-certificates-operator

A charm to provide self-signed X.509 certificates in the Juju ecosystem.
https://charmhub.io/self-signed-certificates
Apache License 2.0
0 stars 5 forks source link
certificates juju x509

self-signed-certificates-operator

CharmHub Badge

An operator to provide self-signed X.509 certificates to your charms.

This charm relies on the tls-certificates charm relation interface. When a requirer charm inserts a Certificate Signing Request in its unit databag, the self-signed-certificates-operator will read it, generate a self-signed X.509 certificates and inserts this certificate back into the relation data.

This charm is useful when developing charms or when deploying charms in non-production environment.

Pre-requisites

Usage

To use the self-signed-certificates operator and provide certificates to your charm, your charm needs to support the tls-certificates interface.

juju deploy self-signed-certificates
juju deploy <your charm>
juju relate self-signed-certificates <your charm>

To obtain the CA certificate from this charm, your charm needs to support the certificate_transfer interface.

juju relate self-signed-certificates:send-ca-cert <your charm>

To get the CA certificate run:

juju run self-signed-certificates/0 get-ca-certificate

Get the certificates issued by the charm

juju run self-signed-certificates/leader get-issued-certificates