Forum Discussion
ahmad_2312
Nimbostratus
Feb 03, 2010Remove whiteSpace from the Certificate
Dears
we need to send the client certificate to our back-end server for authentication, but the server is expecting the certficate as the following (without whitespace)
...
hoolio
Cirrostratus
Feb 08, 2010Hi Ahmad,
Can you post anonymised log output from these portions of the iRule:
log local0. "[IP::client_addr]:[TCP::client_port]: cert $i; subject=[X509::subject [SSL::cert $i]]; [X509::issuer [SSL::cert $i]]; cert_serial=[X509::serial_number [SSL::cert $i]]; [X509::hash [SSL::cert $i]];"
set allcert "[X509::whole [SSL::cert $i]]"
log local0. "[IP::client_addr]:[TCP::client_port]"
log local0. $allcert
set thecert [findstr [X509::whole [SSL::cert $i]] "-----BEGIN CERTIFICATE-----" 28 "-----END CERTIFICATE-----"]
log local0. $thecert
set certnospace [string map -nocase {" " ""} $thecert]
log local0. "Test1 $certnospace"
regsub -all " " $thecert "" certnospace2
log local0. "Test2 $certnospace2"
Thanks,
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