Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
Why the downvote? Duplicate? –  Ronald Zarīts Jul 14 '12 at 17:14
add comment

2 Answers

up vote 6 down vote accepted

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.

share|improve this answer
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! –  Ronald Zarīts Jul 14 '12 at 17:14
add comment

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

share|improve this answer
    
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. –  Ronald Zarīts Jul 14 '12 at 17:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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