Forum Discussion
James_Yang_9981
Altostratus
Aug 08, 2007need help on irules encoding
customer using BIGIP to do SSL acc, but they need insert the DN of client cert to request http header. we encounter the encoding issue there...
the original DN of client is:
CN=041@0110...
Joseph_Chan_463
Aug 11, 2007Historic F5 Account
I download a program called ascii2uni from this website AND change its c code so that it will parse rfc2253 format strings, i.e. the output format of Bigip.
Find the tar file near the end of this webpage. http://billposer.org/Software/uni2ascii.html
Expand the tar file and use a text editor to change one line in ascii2uni.c from
int UTF8ValueP = 0;
to
int UTF8ValueP = 1;
Then ./configure and make.
The resulting executable is ascii2uni. I store the rfc2253 formatted string in a file called rfc2253.txt and invoke the executable with this command:
./ascii2uni -q -Z"\%02X" < rfc2253.txt > utf8.txt
The program will complain about "lacking the requisite final semicolon" but I check the string in utf8.txt and it is indeed in plain UTF-8.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects