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?
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):
/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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With