Forum Discussion
CWaldon_204196
Nimbostratus
Oct 05, 2016Options for Mutually Authenticated Connections using Certificates
Hello,
I'm attempting to change an existing VS configuration to accommodate some updated security requirements that have been passed down to our team.
The existing configuration is as follo...
Kevin_Stewart
Employee
Oct 07, 2016There's no clean non-iRule way to do this quite yet, but as Shaun stated you can use a data group to minimize customization of that iRule. If you take a look at this page you can see a lot of options for extracting information from the certification: https://devcentral.f5.com/wiki/iRules.X509.ashx
So you could take a variation of one of the code examples and add the data group.
when CLIENTSSL_HANDSHAKE {
Check if the client supplied one or more client certs
if { [SSL::cert count] > 0 }{
if { not ( [class match [X509::subject [SSL::cert 0]] equals my-cert-subject-dg] ) } {
incoming cert subject didn't match a data group entry
reject
}
} else {
No certificate presented
reject
}
}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