I got CAS 5 and the management webapp deployed but when I try to log into the management webapp it fails. I get redirected to CAS and login and then my browser gives me an "
ERR_TOO_MANY_REDIRECTS". Catalina.out give me this error:
ERROR [org.springframework.boot.web.support.ErrorPageFilter] - <Forwarding to error page from request [/callback] due to exception [javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching localhost found]>
I don't really know much about certificates. I quickly set up a self signed one to get CAS working following a guide. I used this command to do so:
keytool -genkey -alias tomcat -keyalg RSA -keystore CASkeystore
and then edited Tomcat's server.xml file with this:
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keyAlias="tomcat" keystoreFile="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el6_8.x86_64/jre/lib/security/CASkeystore"
keystorePass="******************" />
That got CAS working but I don't know enough about certs to know what I need to do to get the management app to trust CAS. Any advice is appreciated.