X509 Subject Formatting
Problem this snippet solves: TMOS v12.1.4.1 and v13 have a change where the output of X509::subject is formatted to match OpenSSL output. See https://cdn.f5.com/product/bugtracker/ID607410.html ...
Published Oct 18, 2019
Version 1.0PeteWhite
Employee
Joined May 16, 2019
PeteWhite
Employee
Joined May 16, 2019
Stanislas_Piro2
Nov 13, 2019Cumulonimbus
to prevent this issue, you can replace lines 13 to 20 with:
array set dn [list]
foreach {key val} [ split [string map {"\\," "\\," "," "|" "\\=" "\\=" "=" "|"} $subject] "|"] {
lappend dn([string trim $key]) [string trim $val]
}