Forum Discussion
RobW
Apr 01, 2008Nimbostratus
X509 subject reorder and subsitution
I have a pool of servers with an application that expect to be presented with the X509 subject in the following manner.
Alteon/Nortel -
X-SSL: peersubject="/C=TZ/O=T.Z. Corp/OU=PoP/OU=PKI/OU...
RobW
Apr 02, 2008Nimbostratus
Aaron,
Thanks for passing along this chunk of code. I just came across the lreverse command and was hoping that was the answer. Is v9.4.4 using TCL v8.4. Is there anyway check the TCL version via the CLI?
append client_cert /[lindex $client_cert_list [incr i -1]]
$client_cert = ""
append / plus the contents of the commands executed between the brackets starting at the inner most brackets.
$i = 6, increment $i by -1
lindex contain the list of elements that $client_cert_list points to.
So, lindex will list element 5, first. While $i > 0 continue processing the append statement until [incr i -1] $i = 0
At which point the elments have reversed and a list created in $client_cert
Very nice!
Thanks,
-Rob
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