Skip to content

This is a custom haproxy where you can use your own server.pem and ca.pem

Notifications You must be signed in to change notification settings

inderes/docker-haproxy-client-certificate-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client Certificate Authentication with haproxy

This is a custom haproxy where you can use your own server.pem and ca.pem. Inspiration came from this article:

http://www.loadbalancer.org/blog/client-certificate-authentication-with-haproxy/

Env vars to set

APP_HOST = link to your app in docker network where you want to proxy requsts
CA_PEM = Certificate Authority cert
SERVER_PEM = Server cert which has been signed against the CA
VIRTUAL_PATH = Optional setting to add reqrep to haproxy config so it listens only to this route (for example: /myapp)
SSL_VERIFY = Optional setting to add deny to haproxy config if unverified cert was used

docker-compose.example.yml

An (non-working, ie. it does not have an example image app) example how to use this with an app.

About

This is a custom haproxy where you can use your own server.pem and ca.pem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published