Forum Discussion

Tom_Lebel_53961's avatar
Tom_Lebel_53961
Icon for Nimbostratus rankNimbostratus
Oct 03, 2006

Need to give no client cert message to users

Hi all,

I need a quick little rule to see if a user coming in to our Intranet has their client certs loaded, and if not let them know in a short message.

If they do have certs, nothing needs to happen, just continue processing.

The rule I've started doesn't work. It always sends the No Cert message.

Any help is appreciated.


when HTTP_REQUEST {
if {[SSL::cert count] == 0}
{        
log local0. "when http request,ssl cert count is 0,now http collect"
HTTP::respond 200 content "No Cert Present We are sorry, bu there appears to be no certs present in your browser.  If you have recently renewed your CAC card, please reinstall your certificates, otherwise contact the help desk"  
}  
}

Tom
No RepliesBe the first to reply