Forum Discussion
fita_30888
Nimbostratus
Jul 27, 2009serverside SSL
Hi there,
I have a customer with a weird requirement. They have an application server that only supports HTTP communication. However for one reason or another they need this server to be able to talk to a HTTPS server. Put it in other words they have a HTTP client who needs to talk to HTTPS server.
My idea was that I'll put Virtual server with serverside SSL profile and it would work. The question is it possible to use server side ssl without having client side using SSL as well?
thanks
- hoolio
Cirrostratus
That should work fine. If the web app uses absolute references to https:// in response headers or content, you might need to rewrite them to http://. But give it a shot first and see if it works as is. - fita_30888
Nimbostratus
Cheers for the reassurance! The confguide says "re-encrypting a decrypted request" so I was in doubts. As for the replace would an iRule with switch do the job? - hoolio
Cirrostratus
Re-encrypting a decrypted request is the most common (not not only) use case for server SSL. If you need to rewrite the response headers, you could use 'HTTP::header replace'. For response content, you could use a blank stream profile and a STREAM::expression iRule.when HTTP_RESPONSE { Check if server response is a redirect if { [HTTP::header is_redirect]} { Log original and updated values log local0. "Original Location header value: [HTTP::header value Location],\ updated: [string map -nocase "https:// http://" [HTTP::header value Location]]" Do the update, replacing https:// with http:// HTTP::header replace Location [string map -nocase "https:// http://" [HTTP::header value Location]] } }
when HTTP_RESPONSE { Disable the stream filter by default STREAM::disable Check if response type is text if {[HTTP::header value Content-Type] contains "text"}{ Replace https:// with http:// STREAM::expression "@https://@http://@" Enable the stream filter for this response only STREAM::enable } }
- fita_30888
Nimbostratus
Hello again, - hoolio
Cirrostratus
What fails when the VS is on port 80? Does the client get any response? Can you capture a tcpdump on LTM and use a browser plugin like HttpFox for FF or Fiddler for IE to see what's happening? - fita_30888
Nimbostratus
Hi, - fita_30888
Nimbostratus
Aaron,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects