Forum Discussion
mikegray_198028
Jan 20, 2017Cirrus
irule help
Hello Team,
I am looking for irule for the below scenario.
https://www.example.com/user1 > for this user will submit client certificate with cn=user1 LB should accept this connection and rej...
JG
Jan 20, 2017Cumulonimbus
Here's one in its simplest form:
when CLIENTSSL_CLIENTCERT {
set subject_dn 0
Check if client provided a cert
if { [SSL::cert count] > 0 } {
set subject_dn [X509::subject [SSL::cert 0]]
}
}
when HTTP_REQUEST {
set user_in_path [string trim [HTTP::uri] "/"]
if { ! ($subject_dn contains "cn=$user_in_path") } {
reject
}
}
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