Forum Discussion
am_gli
Mar 10, 2018Altostratus
Figured it out - it was an issue with the space behind the comma.
So "SSL_CLIENT_I_DN: C=DE, O=Test-Organisation, OU=Test-OU, CN=Test-CN" was split to an array but, with leading spaces:
"C|AT"
" O|Test...."
" OU|Test..."
etc.
So in this part:
foreach {part myvar} {
{C} {SSL_CLIENT_I_DN_C}
{CN} {SSL_CLIENT_I_DN_CN}
{O} {SSL_CLIENT_I_DN_O}
{OU} {SSL_CLIENT_I_DN_OU}
the only line that was readable from the array was C, all other didn't match because of the space.