Original Publication Date: 09/16/2007
Updated Date: 02/14/2012
When cookie encryption is enabled, the BIG-IP LTM extracts the unencrypted cookie from the server response, encrypts it using the AES cipher and encodes it using the Base64 encoding scheme. The BIG-IP LTM then embeds the encrypted cookie into the HTTP response to the client. On subsequent requests when the client presents the encrypted cookie to the BIG-IP LTM, the BIG-IP LTM removes the cookie, decodes it using the Base64 encoding scheme, and decrypts it. The BIG-IP LTM then re-embeds the decrypted cookie in the HTTP request to the server.
You can use one of the following two methods to encrypt cookies depending on the version of BIG-IP LTM you are using:
Note: When you use the Configuration utility to configure cookie persistence, the cookies are encrypted using the AES cipher. The AES key length is 192 bits.
Beginning with BIG-IP LTM version 9.4.0, you can configure cookie encryption using the Configuration utility. To do so, perform the following procedure:
Note: If you want to specify more than one cookie for the BIG-IP LTM to encrypt, separate the cookie names with a space.
Note: Cookie names must not contain the period (.) character due to a known issue. For more information, refer to SOL12472: The Configuration utility returns an error message when the HTTP profile is configured with a period character in the 'Encrypt Cookies' field.
You must now associate the http profile with the virtual server.
You can also configure cookie encryption using an iRule. To determine the procedure most applicable to your BIG-IP version and application, refer to the DevCentral Encrypting Cookies codeshare page.
Note: A separate DevCentral login is required to access this content; you will be redirected to authenticate or register (if necessary).