Forum Discussion

Ethereal_96320's avatar
Ethereal_96320
Icon for Nimbostratus rankNimbostratus
Aug 02, 2017

Dealing with a comma on the X509::issuer field

Hello folks

 

We're running an old version of F5 (10.2.4 - I know, don't blame me). We're using an iRule extracting the Client Certificate issuer using [X509::issuer] command. The problem is the cert has a comma in the CN like "Entrust, Inc." and teh [X509::issuer] is introducing a backslash in the result: "Entrust\, Inc." We're comparing this result agains a Data Group List containing the string without the backslash.

 

Do you know how to escape that backslash or to remove it from the X509::issuer output?

 

Thanks in advance Vicentiu

 

1 Reply

  • How about a trim, then use the trimmed_issuer to match the class.

    set orig_issuer "[X509::issuer]"
    set trimmed_issuer [string trim $orig_issuer "\"]