Forum Discussion
AwesomeNetwork1
Aug 31, 2017Nimbostratus
capturing the CN from a X509 subject
I found irules for capturing the X509::subject, but I need to capture the CN and insert it into a http::header. It looks like I can do that with the subject. any idea on how (if possible) I can iso...
Jad_Tabbara__J1
Aug 31, 2017Cirrostratus
Hi
You can use this to retrieve the CN from the subject
set subject [X509::subject [SSL::cert 0]]
set fields [split $subject ","]
log local0. [lindex $fields 0] // this will show you in the /var/log/ltm the CN=host.domain.com
Regards
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