What is a correct way to add ca-bundle to Docker installation?

upgrade
10
webserver_issue

#1

I've migrate my owncloud to docker and now have an issue with ca-bundle.
Can someone tell the correct way to add ca-bundle to the Docker installation ?


#2

Any ideas or tutorials?


#3

I am looking in to this, and will answer you as soon as possible :slight_smile:


#4

Could you provide more information what you want to do and why?
What certificates are those? What are they for?

Are you using the appliance or just a normal ownCloud docker container?


#5

Owncloud installation based on official docker compose
https://doc.owncloud.org/server/10.0/admin_manual/installation/docker/

My SSL certificate for correct work must be configured with intermediate SSL.
For Apache I've done this by added SSLCertificateChainFile parameters to vhost .conf file in owncloud docker container.

After docker-compose stop and start again the apache vhost .conf file become as at beginning without my edition.

Without SSLCertificateChainFile I've got an error (untrusted certificate).

I'm wondering If there's any way that I could added SSLCertificateChainFile for persistent use ?


#6

I've added:
volumes:
- ./apache2:/etc/apache2/sites-enabled/ to the official docker-compose
and changed 000-default.conf with SSLCertificateChainFile.

But after server restart my changes disappears.


#7

You can find here how you can save certificates.
https://hub.docker.com/r/owncloud/server/

They are saved in a volume then.


#8

I need to save my bundle file, not certificate.
My certificate saved correctly at /mnt/data/certs/ . What about mybundlefile.ca-bundle ?