X509 Subject Formatting
It works but there's just one small issue (might be a bug?). BTW my version is 13.1.3 build 0.0.6
Here's the relevant code
set subject [regsub -all {(".*),(.*")} $subject "\\1--COMMA--\\2"]
log local0. "Comma replaced: $subject"
In case there are 2 fields with commas in the subject it only replaces second comma occurrence inside double-quotes. This is what I get
Nov 20 01:24:26 example.lab info tmm5[12408]: Rule /Common/irule-subject-reverse <HTTP_REQUEST>: Original Subject: C=GB, ST="London, City of", L=Bar, O=Foo, OU=TEST, CN="F5lab, local"
Nov 20 01:24:26 example.lab info tmm5[12408]: Rule /Common/irule-subject-reverse <HTTP_REQUEST>: Comma replaced: C=GB, ST="London, City of", L=Bar, O=Foo, OU=TEST, CN="F5lab--COMMA-- local"
I believe the regsub -all option should replace all the occurrences of the comma(,) in the string right?
Any ideas what might be wrong?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)