Forum Discussion
Vipin_131018
Nimbostratus
May 15, 2017convert SSL X509::serial_number into decimal
Hi Team,
I have an irule to extract specific X509 information from client certificate and pass it onto servers.
Irule is working as expected, but application has the requirement to convert X509:...
Anesh
Cirrostratus
May 16, 2017Try the below
when CLIENTSSL_CLIENTCERT {
set ssl_cert [SSL::cert 0]
set sn [X509::serial_number $ssl_cert]
set decimal [expr $sn]
set subject [X509::subject $ssl_cert]
set issuer [X509::issuer $ssl_cert]
set valid_from [X509::not_valid_before $ssl_cert]
set valid_to [X509::not_valid_after $ssl_cert]
session add uie [SSL::sessionid] [list $decimal $issuer $subject $valid_from $valid_to] 1800
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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