We’re apache web server to host my application. At front we have F5 LTM 1600. Last engineer who setting this SSL is redirect on F5. On apache web server i did not find any SSL cert. It’s using setting on iRule. Below is setting on iRule:
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
By doing this, we notice slowing when login to system. The support maintenance is already expired and expensive to renew to solve this issue only. When i test tcpdump, response to HTTP much faster than HTTPS. Also we test using openssl command:
You apparently have an HTTP VIP that does nothing more than redirect requests to an HTTPS VIP. This is fine, but then consider what happens if every document reference in the returned HTML is for an http:// URL. For every object, the client has to make TWO requests. The best way to tell if this is actually happening is to perform a client side capture with a tool like Fiddler or HTTPWatch. If the client is indeed making two requests for many objects, then it’s probably also a good idea to implement a STREAM rewrite iRule to replace all of those http:// references with https://. That way the client will talk directly to the HTTPS VIP. The STREAM::expression wiki page actually has a really good example of how to do that.
There are also two separate SSL sessions here, at the VIP and at the web server. This too is fine, but consider the implications of first decrypting the traffic at the F5 and then re-encrypting to the server. You’ll certainly get better performance in the client side SSL, but it’ll be a wash on the server side. One of the F5’s greatest strengths is its ability to process/offload SSL traffic really quickly, so it may be worth considering NOT re-encrypting to the web server. In lieu of that, you shouldn’t need to put the server certs on the web server unless you have some (non-standard) reason to do so. Cryptography is CPU intensive, so you can expect it to be slower than without it.
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
}
when HTTP_RESPONSE {
Check if response type is text
if {[HTTPS::header value Content-Type] contains "text"}{
Replace any http:// instance with https://, unless the original string is http://*example.com:
STREAM::expression {@http://(?!.*?system\.com)@https://@}
Enable the stream filter for this response only
STREAM::enable
}
}
Unless you need something more specific. Before you add this iRule though, I highly recommend you do the client side capture to determine if its actually needed (excessive HTTP-to-HTTPS redirects).
Also on on SSL_client properties in Ciphers we just use default. Can it be default or need to put any parameter?
The DEFAULT cipher profile is reasonably well tuned (and hardware accelerated). There’s rarely a reason to vary from this setting.
Can we put this on Ciphers box?
Keep in mind that this is going, I assume, in the client SSL profile, which affects the SSL communications between the client and the VIP. If the clients are regular browsers, you shouldn’t need to modify the DEFAULT cipher profile.
We will try this new config on night. Because of server on production we cannot test during office hours. On server side, we not putting any SSL. we just do redirect on F5.
This isn’t really telling you anything useful, other than your openssl client isn’t presenting or able to validate any of the certificates. You need to:
Perform a client side layer 7 capture to see what the HTTP traffic looks like, and
Perform an ssldump capture on the client side, while testing with a browser, to what the SSL handshake looks like.
Verify return code: 21 (unable to verify the first certificate)
as Kevin said, it has nothing on slow login issue you are troubleshooting. the following is more information about unable to verify the first certificate.
How To Verify SSL Certificate From A Shell Prompt by Nix Craft