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

Proxy with certificates #17

Open
javierpavon2000 opened this issue May 19, 2015 · 7 comments
Open

Proxy with certificates #17

javierpavon2000 opened this issue May 19, 2015 · 7 comments

Comments

@javierpavon2000
Copy link
Contributor

Now, when you configure the proxy to an url with needs a certificate, always response a 403.

If you install the certificate in the browser, you can reach the url, but with freddie response a 403

@pfraces
Copy link
Contributor

pfraces commented May 19, 2015

@pfraces
Copy link
Contributor

pfraces commented May 20, 2015

Suggested configuration:

{
    "name": "rbowen",
    "root": "build/",
    "port": 4000,
    "proxy": {
        "/api": {
            "url": "http://10.0.16.227:8080/ebd-rest",
            "key": "/path/to/key.pem",
            "cert": "/path/to/cert.pem"
        }
    }
}
  • "proxy" properties should accept either a string value (proxy url) or an object like in the previous example

@pfraces
Copy link
Contributor

pfraces commented May 20, 2015

@pfraces
Copy link
Contributor

pfraces commented May 20, 2015

From: http://stackoverflow.com/questions/23601989/client-certificate-validation-on-server-side-depth-zero-self-signed-cert-error

openssl genrsa -out ca.key 4096
openssl req -x509 -new -nodes -key ca.key -days 999 -out ca.pem

openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 999 -in server.csr -CA ca.pem -CAkey ca.key -out server.pem

openssl genrsa -out client.key 1024
openssl req -new -key client.key -out client.csr
openssl x509 -req -days 999 -in client.csr -CA ca.pem -CAkey ca.key -out client.pem

@javierpavon2000
Copy link
Contributor Author

I've created an issue to node-http-proxy http-party/node-http-proxy#826

@pfraces
Copy link
Contributor

pfraces commented May 20, 2015

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