nextcloud-docker-dev icon indicating copy to clipboard operation
nextcloud-docker-dev copied to clipboard

Trust mkcert CA in containers

Open kesselb opened this issue 2 years ago • 1 comments

For debugging federation, it would be nice to trust the mkcert CA also in the containers.

  • Get the ca path: mkcert -CAROOT
  • Copy the root ca to our work directory
  • Mount rootCA.pem to /usr/local/share/ca-certificates/rootCA.crt
  • Run update-ca-certificates as root

Leaving it here as an idea. I trusted the certificates manually for now.

kesselb avatar Nov 12 '23 21:11 kesselb

Alternative for scripting could be

cp $(mkcert -CAROOT) data/shared/
docker-compose exec stable24 occ security:certificates:import /shared/rootCA.pem

juliusknorr avatar Mar 07 '24 07:03 juliusknorr