Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add SSL support to docker container

Tags:

docker

ssl

svn

I am working with an Go based application that is being run in a docker container using the docker-engine. In this container, I am looking to run subversion as part of the application. The issue I am running into is that svn is having issues accessing the repository due to SSL certificate issue. I already have a certificate file that I can use for the svn server I am trying to access and need to install that into the docker container so that the svn inside the container can use it.

Any advice on how to do this? Can I do this in the dockerfile?

like image 436
Andrew Avatar asked Apr 23 '26 08:04

Andrew


1 Answers

Looking at "SVN Runtime Configuration Area", you could specify which certificate SVN needs to trust with the property

ssl-authority-files

This is a semicolon-delimited list of paths to files containing certificates of the certificate authorities (or CAs) that are accepted by the Subversion client when accessing the repository over HTTPS.

You would need to COPY (in your Dockerfile):

  • a certificate
  • a system-wide configuration area (/etc/subversion/servers), or a per-user configuration area (~/.subversion/servers) with that property set to that certificate.

The global section of that servers file would look like:

[global]
ssl-authority-files=/etc/ssl/certs/example.pem

If you need to trust several certificates then this can be done by placing them in a semicolon-separated list:

[global]
ssl-authority-files=/etc/ssl/certs/example.pem;/etc/ssl/certs/another-example.pem
like image 192
VonC Avatar answered Apr 25 '26 01:04

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!