Follow the instructions in the readme
Follow all the instructions given in the Mod_auth_Cas -1.0.6. In this, I followed the instruction in readme.win32 since I am working on windows.
Export the crt file
Go to the CAS Server machine and export the crt file from the keystore. With the command
Copy the crt file to the client machine
Now copy this exported-der.crt to the client machine where the Apache mod_auth_cas is running.
Use OpenSSL to transform the format of the cert
Open the open ssl.
issue the command
Update the httpd.conf file
Change the httpd.conf file and add this crt there.
Versions of software with which this tutorial has been verified
I followed the steps to convert the crt file to PEM from here
My httpd.conf file
So when I give the url pattern /secured/.. You get redirected to CAS login and everything works fine.
Thanks to Matt, Scott, Phillip and all for the help.
Sucked into Confluence by Andrew Petro.