override cas.example.org DNS name

29 views
Skip to first unread message

cheekian yap

unread,
Dec 22, 2020, 12:48:13 AM12/22/20
to CAS Community
Hi,

cas version: 6.2.6

I have added the following line inside application.properties:

cas.authn.saml-idp.entity-id=https://xx.xx.xx.xx:8443/cas/idp/metadata

However, the certificate generated in /etc/cas/saml/idp-metadata.xml still shows:
X509v3 Subject Alternative Name:
                DNS:cas.example.org, URI:cas.example.org/idp/metadata

How can I override the default value?

Andy Ng

unread,
Dec 22, 2020, 9:29:37 AM12/22/20
to CAS Community, yap.s...@gmail.com
Hello,

The endpoint seems to use the cas.server.name properties, see: 


If no, try and see if this fix it. FYI you also need to remove the idp-metadata.xml and the cert files for it to regenerate those files.

Cheers!
- Andy

cheekian yap

unread,
Dec 22, 2020, 10:36:41 AM12/22/20
to CAS Community, Andy Ng, cheekian yap
Yes, changing cas.server.name does the trick. Thanks a lot!

Andy Ng 在 2020年12月22日 星期二下午10:29:37 [UTC+8] 的信中寫道:

Andy Ng

unread,
Dec 22, 2020, 10:43:45 AM12/22/20
to CAS Community, yap.s...@gmail.com, Andy Ng
np, glad it helps - Andy
Reply all
Reply to author
Forward
0 new messages