how to setup ssl certificate(self signed) in different machines for CAS server and client
- CAS Server : Linux , Tomcat , jdk6
- Client : windows ,Tomcat,jdk6
- Certificate : self signed (keytool)
- Environment : development
CAS and Clients are working fine with single machine , if using different machine it is throwing certificate error.
whether single self signed certificate is enought for both client and server machine ?
any specific client and server settings changes are required like server machine name and client machine name for certificate creation
Can you please add the exception you are getting and in which node?
As a general advice, please note that:
1) you have to install the certificate on the client JVM machine if you are using https communication on the server side between the cas client and the CAS server
2) JVM will not accept (at runtime) self signed certificate with the ip in the CN (common name).
See https://wiki.jasig.org/display/CASUM/SSL+Troubleshooting+and+Reference+Guide for more details
So from the exception you posted it seems the folowing case (quoted from the CAS Troubleshooting link above):
Have you resolved changing the certificate with a domain name instead of the ip and then reinstalling it in the system truststore for the CAS client and in the keystore for the CAS server?