Stepwise instructionsFollow the instructions in the readmeFollow 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 fileGo to the CAS Server machine and export the crt file from the keystore. With the command keytool -export -alias tomcarcert -keystore keystore -file exported-der.crt Copy the crt file to the client machineNow 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 certOpen the open ssl. cd C:/openssl/bin openssl issue the command x509 -out C:\ssl\cas_sslcrt\exported-pem.crt -outform pem -in C:\ssl\cas_sslcrt\server-export.crt -inform der Update the httpd.conf fileChange the httpd.conf file and add this crt there. AppendixVersions of software with which this tutorial has been verified
ReferencesI followed the steps to convert the crt file to PEM from here http://conshell.net/wiki/index.php/Keytool_to_OpenSSL_Conversion_tips ExamplesMy httpd.conf file
CASCookiePath cache/
CASCertificatePath C:/ssl/cas_sslcrt/exported-pem.crt
CASValidateServer on
<Location /secured >
AuthType CAS
Require valid-user
</Location>
So when I give the url pattern /secured/.. You get redirected to CAS login and everything works fine. AcknowledgmentsBased on a cas@ email list post by Srikar Kummamuri. Thanks to Matt, Scott, Phillip and all for the help. Sucked into Confluence by Andrew Petro. |
