Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding certificates #4

Open
danielmischler opened this issue Sep 22, 2014 · 1 comment
Open

Adding certificates #4

danielmischler opened this issue Sep 22, 2014 · 1 comment

Comments

@danielmischler
Copy link

What's the correct way to add certificates? Would it have to be along the line of haproxy.cfg and errors?

@voxxit
Copy link
Contributor

voxxit commented Dec 16, 2014

You should secure them on your host machine in the system-level directories first. If your host OS is Ubuntu, for instance:

https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html#installing-the-certificate

Then you simply add a read-only volume reference at runtime:

docker run \
  -d \
  -p 80:80 \
  -p 443:443 \
  -v <override-dir>:/haproxy-override \
  -v /etc/ssl/certs/cert.pem:/etc/ssl/certs/cert.pem:ro \
  -v /etc/ssl/private/key.pem:/etc/ssl/certs/key.pem:ro \
  dockerfile/haproxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants