eric_haupt1
Aug 28, 2019Nimbostratus
7 character extraction from string (Cert subject)
I'm working a solution for an PKI requirement and I need to extract seven alphanumeric characters from the end of a cert subject. An example subject would be:
SUBJECT: C=BLAH, O=Barf, OU=Help, OU=People, Lastname Firstname MI xxxxxxx
I want to grab xxxxxxx to place into a variable. Note that not everyone will have a middle initial, but all will have xxxxxxx at the end of their x509 subject. xxxxxxx will always be a mix of lowercase alpha/0-9 numeric.
Thanks...