How to disable htttps on CAS for debugging

687 views
Skip to first unread message

BACCHELLA Fabrice

unread,
Jul 13, 2018, 7:03:50 AM7/13/18
to CAS Community
At https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties.html#embedded-container, the documentations say, to disable https:

# To disable SSL configuration, comment out the following settings or set to blank values.

server.ssl.keyStore=file:/etc/cas/thekeystore
server.ssl.keyStorePassword=changeit
server.ssl.keyPassword=changeit


But that does not work, I tried that and getting an Invalid keystore format exception

And so I can't disable https and use tcpdump for debuging.
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer

newbee

unread,
Jul 13, 2018, 8:16:17 AM7/13/18
to CAS Community, Fabrice....@3ds.com
I host the cas.war file in tomcat server. To enable a non http endpoint I added following settings in server.xml file

<Connector port="8080" protocol="HTTP/1.1"
          connectionTimeout="20000"
                URIEncoding="UTF-8"
            redirectPort="19501" />

Hope that helps.

BACCHELLA Fabrice

unread,
Jul 13, 2018, 9:36:24 AM7/13/18
to newbee, CAS Community
That's the tomcat way, not the embeded server way.

Chia-Ying (David) Yang

unread,
Jul 13, 2018, 10:04:45 AM7/13/18
to cas-...@apereo.org
Try adding this to your cas.properties

server.ssl.enabled=false

Also make sure to adjust other properties such as cas.server.name/prefix accordingly (https -> http).

David
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/3CBEC7FC-0AC7-46B6-9E48-A295E0971006%403ds.com.

Jon Hawkesworth

unread,
Jul 13, 2018, 12:16:08 PM7/13/18
to cas-...@apereo.org
Thanks for this, I needed this today as well!

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/62463d31-ac7d-7951-a951-f1755da01013%40gmail.com.

Reply all
Reply to author
Forward
0 new messages