Forum Discussion
Deb_Allen_18
Mar 17, 2006Historic F5 Account
decrypting server cookie
Can LTM decrypt a server's cookie (3DES w/private key exchange)?
Login server sets an encrypted cookie containing info that we'd like to reference in a rule.
thanks
/deb
- unRuleY_95363Historic F5 AccountWe currently only support AES encryption for cookies.
- Deb_Allen_18Historic F5 AccountOk, thanks.
- unRuleY_95363Historic F5 AccountYes. But importing that key might be the tricky part. I would suggest looking at the output of AES::key to figure that out.
- Deb_Allen_18Historic F5 AccountI'm not sure I understand.
- unRuleY_95363Historic F5 AccountYou'll need to set a variable with the value of the private key in the format of what AES::key puts out.
- Deb_Allen_18Historic F5 AccountSo to insert the key value into the rule, I'd use something like this, but insert the actual key value in place of "key_value":
when RULE_INIT { set ::key "key_value" }
[AES::decrypt $::key $encryptedCookie]
- unRuleY_95363Historic F5 AccountYeah.
- Deb_Allen_18Historic F5 AccountOk, thanks.
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