CAS单点登录学习笔记三之配置Tomcat启用Https 协议

简介

    Cas server默认的安全认证是基于https协议的,这就要求在应用程序和CAS Server端配置SSL协议。

配置

(1)修改%TOMCAT_HOME%\conf\server.xml文件

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


    <Connector SSLEnabled="true" clientAuth="false"   
        keystoreFile="D:/Java/apache/apache-tomcat-cas/casserver.keystore"   
        keystorePass="demosso"   
        maxThreads="150"   
        port="443"   
        protocol="org.apache.coyote.http11.Http11Protocol"   
        scheme="https" secure="true" sslProtocol="TLS"/>  
    <!--<span>keystoreFile</span><span>生成的安全证书的位置</span> -->  
    <!--<span>keystorePass<span>设置<span>安全证书</span>的密码</span></span>--> 


(2)浏览器输入https://localhost:8081/cas/login

访问服务失败

博文参考
http://dylanxu.iteye.com/blog/1871329

你可能感兴趣的:(cas)