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 should be the format:
----Begin Certificate-----
asdlkfjsdfjlksdjflksdjfklsdjf
asldkjflskdjflasdjflksjflasjk
asdlkfjsdfjlksdjflksdjfklsdjf
asldkjflskdjflasdjflksjflasjk
asdlkfjsdfjlksdjflksdjfklsdjf
asldkjflskdjflasdjflksjflasjk
asdlkfjsdfjlksdjflksdjfklsdjf
asldkjflskdjflasdjflksjflasjk
------End of Certificate-----
The F5 box is sending it in this format:
----Begin Certificate----- asdlkfjsdfjlksdjflksdjfklsdjf asldkjflskdjflasdjflksjflasjk asdlkfjsdfjlksdjflksdjfklsdjf asldkjflskdjflasdjflksjflasjk sdlkfjsdfjlksdjflksdjfklsdjf asldkjflskdjflasdjflksjflasjk asdlkfjsdfjlksdjflksdjfklsdjf asldkjflskdjflasdjflksjflasjk ------End of Certificate-----
We tried to replace the space with cr but the Irule is not working.
The iRule:
when RULE_INIT {
Session timeout. Length of time (in seconds) to store the client cert in the session table.
set ::session_timeout 3600
SSL::sessionid returns 64 0's if the session ID doesn't exist, so set a to check for this
set ::null_sessionid [string repeat 0 64]
}
when CLIENTSSL_CLIENTCERT {
if { [SSL::cert count] > 0 } {
Add the cert to the session table for use in subsequent HTTP requests. Use the SSL session ID as the key.
log "SSL_shops CLIENTSSL_CLIENTCERT"
session add ssl [SSL::sessionid] [X509::whole [SSL::cert 0]] $::session_timeout
}
}
I need a solution to get the carriage returns in my header because I can´t rewrite the application in the backend and it needs the cert for authentication.
best regards,
aonsux
- hoolio
Cirrostratus
Hi aonsux,
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