Forum Discussion
jase_40648
Nimbostratus
May 12, 2009Custom Certificate Checks
Hello. We are trying to do some custom checks for a protected configuration. Specifically, we want to verify that not only did the client give a valid certificate, but that their email address in the certificate is appropriate for the user.
For this protected configuration, all users should have a certificate email in the form of username@COMPANY.COM.
I've tried things such as
session.ssl.cert.email == session.user.username+"@COMPANY.COM"
as well as various combinations of surrounding the variables with '%'. I've dumped the session variables and see that they do exist. And I've successfully checked for a specific user with
session.user.username == "SPECIFIC_USER"
and I've also successfully checked for a specific email address with
session.ssl.cert.email == SPECIFIC_USER@COMPANY.COM"
so I know that the variables exist. Is there a way to do the custom check I am trying to accomplish?
- Mike_Ho
Cirrus
Hi Jase, - jase_40648
Nimbostratus
Thanks for the suggestion. I had already tried creating some advanced session variables, and using those too, but I was not successful. I just tried it again too, but still can't get it to work. I created the following session variables: - Mike_Ho
Cirrus
You're close! In your protected configuration try:session.ssl.cert.email == session.asv.myemail AND session.user.username == session.asv.certuser
- jase_40648
Nimbostratus
Thanks again for your response! Both checks are really redundant. I tried each one individually, but could not get either one to work. Of course, removing the custom check allows me access to the protected resources. - Mike_Ho
Cirrus
I agree it is annoying that they don't show up in the logon details even when showing session variables, but then again if it's been tested then you should know what is in it. - jase_40648
Nimbostratus
Thanks again for your response! Yes. I have tested the advanced session variables, that they produce the correct output, and everything is lower case, so case comparison should not be an issue. - Stephan09_87803
Nimbostratus
Hi all, - Mike_61719
Cirrus
Well I do not see why you are wanting this type in the protected configuration. Let me explain.
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