2

Is it possible to have something like this?:

[Client] ----HTTP--- > [Magic] ----HTTPS----> [Server]

I have a Windows Phone client that should connects to a HTTPS server which is out of my control. Trouble is, the test server is using a self signed cert, and Windows Phone doesn't allow connections to sites whose certificates are not signed by a trusted root certificate authority.

So is it possible to have some piece of software ([Magic]) act as a HTTP endpoint for the client, which would then, transparently to the client, forward the requests to the HTTPS server?

I've heard ISA server does this, but a lightweight solution would be preferable.

1
  • Why the downvote? Duplicate? Jul 14, 2012 at 17:14

2 Answers 2

7

In nginx that is pretty simple.

upstream backend-secure {
  server 10.0.0.20:443;
}

server {
  listen 10.0.0.1:80;
  location / {
      proxy_pass https://backend-secure;
  }
}

You could also use HAProxy or Apache or anything similar.

1
  • 1
    Thanks! This works like a charm! Even though I'm new to nginx and I don't understand everything, I can get on with work! Jul 14, 2012 at 17:14
2

Sure, anything capable of acting as a reverse proxy should be able to do this -- Apache, nginx, varnish.

1
  • Thanks! This is helpful! So the keyword I should be searching for is 'reverse proxy'. Sorry, I'm still just a dev aspiring to be a network guy. Jul 14, 2012 at 17:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.