Forum Discussion
Laurent_53635
Nimbostratus
Aug 14, 2009Irule : read PEM in header
Hello,
I have a strange irule to create in my BIG-IP LTM.
I receive in the HTTP header from the client a certificate in PEM format.
I can read it but I want to decrypt or ...
Laurent_53635
Nimbostratus
Aug 17, 2009Hello,
Many thanks Aarron.
Now It works. I was also trying with X509::extensions [[b64decode but it does not support the "BEGIN CERTIFICATE ... END ..." statement in PEM.
Here the result
set userCERT [b64decode [findstr [HTTP::header value USERCERTIFICATE] "-----BEGIN CERTIFICATE-----" 28 "-----END CERTIFICATE-----"]]
set UPN [findstr [X509::extensions $userCERT] "UPN<" 4 ">"]
set CRL [findstr [X509::extensions $userCERT] "X509v3 CRL Distribution Points" 32 "X509"]
Have nice evening and thanks again
Laurent
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
