#Import certificate at container startup and use it in a blueprint

1 messages · Page 1 of 1 (latest)

topaz basin
#

I'm deploying Authentik with Docker Compose and want to reference a certificate mounted in "/certs" in a blueprint.

How can I have the certificate imported automatically without waiting for the Celery task "authentik.crypto.tasks.certificate_discovery" to run?

My goal is to make the deployment fully automatic.

daring bramble
#

Use a blueprint to import the certificate and have the other blueprint use that.

topaz basin
#

How can I import the certificate using a blueprint?
Is there any documentation with more details on this?

daring bramble
#

the blueprints are just replicas of the API for authentik

#
/crypto/certificatekeypairs/

with the POST method

#

and the blueprint ex would be

model: authentik_crypto.certificatekeypair
attrs
  name:
  certificate_data:
  key_data:
#

and just plug the key and cert data into the yaml fields