Forum Discussion
aonsux_5649
Nimbostratus
Mar 09, 2010Modify http header to send carriage returns
Hi all,
we need to ensure that an application is getting a complete certificate in the http header. The only problem is that I also need the right format for the cert.
This shou...
Hi aonsux,
You cannot have raw carriage returns in an HTTP header value as this is the delimiter between headers. You can URL encode the cert before storing it in the session table. The web app should URL decode it before trying to parse the value.
session add ssl [SSL::sessionid] [URI::encode [X509::whole [SSL::cert 0]]] $::session_timeout
Adding the cert URI encoded to the session table takes more memory, but saves on having to do the encoding on each HTTP request using the same SSL session ID.
If there are problems with URL encoding, you might try base64 encoding the value. This assumes the app can be changed to base64 decode the header value.
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