Forum Discussion
Wojciech_Starow
Nimbostratus
Apr 05, 2007Strange errors...
Hi I have BiGIP with configured two-way ssl. In my app I use certificates, so in every reguest i put in a header atribute a certificate. My rule is:
when CLIENTSSL_CLIENTCERT {
set ssl_cert [SSL::cert 0]
session add ssl [SSL::sessionid] $ssl_cert 180
log "ssl_cert: $ssl_cert"
}
when HTTP_REQUEST {
set client_cert [session lookup ssl [SSL::sessionid]]
HTTP::header replace SSLCertificate [X509::whole $client_cert]
log "client_cert: [X509::whole $client_cert]"
}
It works ok, but... every 2-3 minutes of inactivity in app results broken session and info in logs:
TCL error: Rule insert_cert_to_header HTTP_REQUEST - while executing X509::whole $client_cert
Does anyone know what is going on?
- hoolio
Cirrostratus
I would guess that the SSL session ID is changing. Take a look at SOL1024 on AskF5.com for details on the limitations of persisting on SSL session IDs (Click here) - Wojciech_Starow
Nimbostratus
Hmmmm.... I terminate SSL connection on BiGIP and then connection to app is on normal 80 port. I have persistence set to dest_addr (by default configured on BiGIP) for HA purposes. Do You know better solution? My platform version is "9.2.3 Build 34.8" so it is newer that in SOL1024... - hoolio
Cirrostratus
Sorry for the confusion. You're not persisting based on the SSL session ID, but you're using it to verify sessions.when CLIENTSSL_CLIENTCERT { set ssl_cert [SSL::cert 0] log "client [IP::client_addr] - \$ssl_cert: $ssl_cert" session add ssl [SSL::sessionid] $ssl_cert 3600 } when HTTP_REQUEST { set client_cert [session lookup ssl [SSL::sessionid]] log "client [IP::client_addr] - \$client_cert: $client_cert, [X509::whole $client_cert]" HTTP::header replace SSLCertificate [X509::whole $client_cert] }
- Wojciech_Starow
Nimbostratus
It seems to work now! Thank You very much - stupid error - I didn't look on the 180 parameter......
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