Hey there!
I was looking at a few posts like this prior and just thought it could be more elegant if allowing to specify a cert to pass through presumably to the underlying acme.sh commands being run.
I have however got a working solution for future reference for anyone else!
I created a script called startup.sh
on my Docker host looking like so. (Don't forget to chmod +x
it)
#!/bin/bash
apk update
apk add ca-certificates
update-ca-certificates
/app/certwarden
I then added the following entrypoint and mounts (including the default) to my certwarden compose file:
entrypoint: "/tmp/startup.sh"
volumes:
- "./certwarden:/app/data"
- "./certwarden-startup/root_ca.crt:/usr/local/share/ca-certificates/root_ca.crt"
- "./certwarden-startup/startup.sh:/tmp/startup.sh"
Then I was able to connect to my local step-ca server just fine! Should persist through updates and such too as long as your Dockerfile CMD does not change.
Still need to test the certs out but they seem to have been issued fine.