Requirement :

Client Certificate Comman Name: ( CN) should be checked and if matched a redirect has to be set and if  there is no client certificate the page has to be redirected to a different link