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

Load balance SSL backend server with client authentication #210

Closed
sbrakl opened this issue Dec 6, 2016 · 3 comments
Closed

Load balance SSL backend server with client authentication #210

sbrakl opened this issue Dec 6, 2016 · 3 comments

Comments

@sbrakl
Copy link

sbrakl commented Dec 6, 2016

I am using Interlock 1.13 with Docker 1.11 and Swarm 1.2.5

I am trying to load balance tomcat server which serve as ESB in my application.

They listen on port 8443, and require HTTPS with client certificate authentication.

Now, I need to inject client certificate which would be used in proxy section of Nginx

backend {
    server some-ip:8443;
}

server {
    listen 80;
    location / {
        proxy_ssl_certificate        certs/client.crt;
        proxy_ssl_certificate_key    certs/client.key;

        proxy_pass https://backend;
    }
}

I studied the Interlock configuration section, but couldn't find options which could do this.

I am already using following options

  • interlock.hostname=test
  • interlock.domain=local
  • interlock.ssl=true
  • interlock.ssl_only=true
  • interlock.ssl_cert=test.local.crt
  • interlock.ssl_cert_key=test.local.key
  • interlock.ssl_backend=true

But couldn't find options for proxy_ssl_cert, and proxy_ssl_cert_key

How can I achieve this, if I want to use Interlock with Nginx?

@ehazlett
Copy link
Owner

ehazlett commented Dec 7, 2016

Right now backend proxy ssl is not supported.

@sbrakl
Copy link
Author

sbrakl commented Jan 9, 2017

I was able to set client auth certificate using nginx Template. Just for reference, here out how I did it
https://sbrakl.wordpress.com/2017/01/09/client-auth-with-interlock-and-nginx/

Thanks for the help!

@ehazlett
Copy link
Owner

Thanks!

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

No branches or pull requests

2 participants