server.xml中配置
<Connector port="9443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="D:\netzbook\apache-tomcat-8.5.39\server.keystore" keystorePass="tomcat"
/>
webapps\cas\WEB-INF\classes\application.properties
# 加上账号密码
cas.authn.accept.users=admin::admin12345
# 加上下面的语句,否则会出现找不到服务
cas.tgc.secure=false
cas.serviceRegistry.initFromJson=true
# 不允许使用CAS来认证您访问的目标应用
webapps\cas\WEB-INF\classes\services\HTTPSandIMAPS-10000001.json
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : "^(https|imaps|http)://.*",
"name" : "HTTPS and IMAPS",
"id" : 10000001,
"description" : "This service definition authorizes all application urls that support HTTPS and IMAPS protocols.",
"evaluationOrder" : 10000
}