Hi Ray,
I remade many tests and still have the issue. To be sure I made an ansible script to generate my certs etc...
I'm really struggling with the way to debug this.
In summary, here is what I've done :
* copy all the certs from the front that is the owner of the domain.tld in the DNS registry into the CAS VM
* In the CAS Set the domain.tld in my /etc/hosts file associated to both 127.0.0.1 and the IP
* Generate a keystore with the SAN:dns option
* Convert the Keystore into PKCS12
* Use part 2 and 3 from
https://maximilian-boehm.com/en-gb/blog/create-a-java-keystore-jks-from-let-s-encrypt-certificates-1884000/ to import the domain.tld let's encrypt cert into the CAS keystore
* Checked that the alias domain.tld is correctly in the Keystore => Ok
* Export the cert from the keystore following
https://apereo.github.io/cas/developer/Build-Process.html#configure-ssl instructions
* checking that the alias domain.tld is present into the cacerts => Ok
* Running CAS => Ok
* Login into CAS => Ok
* Trying to log using Oauth2 protocol => redirection cause
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching
Please be advice that with latest JDK8, some keytoolms options have to be done wth -J-Duser.language=en to foce the language
Any advice or guidance will be appreciated.
regards