`
yupengcc
  • 浏览: 131847 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
社区版块
存档分类
最新评论

Tomcat 配置 CAS 的一个问题。unable to find valid certification path to requested target

阅读更多
来自:  http://blog.csdn.net/cool_scorpion/article/details/2451632


    Tomcat 下配置CAS,首先要让Tomcat支持SSL,要产生证书之类的:

      下面就自己安装过程中遇到的一个问题加以分析:所有过程按网上的配置完成之后,却在 cas服务器登陆之后返回的页面产生unable to find valid certification path to requested target的异常。

     不停的反复尝试,不停的google,百度,灵光一闪:好像自己的Tomcat是配置在Eclipse里面的,所以Tomcat所用的jre也当然是Eclipse配置的jre。而自己机子上装的jre一共有3个之多啊,包括jdk1.5,jdk1.6,eclipse的jre,系统环境变量%java_home%指向的是jdk1.5。所以运行
keytool -import -file server.crt -keystore %java_home%/jre/lib/security/cacerts的时候一直是往jdk1.5的jre添加证书。而Tomcat用的jre一直没有添加证书,所以一直有unable to find valid certification path to requested target的异常。往eclipse的jre添加证书之后,CAS终于运行正常。!!!!!!!!
 
       总结:不仅仅这个问题,其实有很多问题都是因为系统装了多个各个版本的JDK而引起的。最好只保留一个JDK,可以避免很多的稀奇古怪的问题。否则,一定要仔细确认tomcat等其他依赖JDk的应用程序到底用的是哪个JDK。。


把jdk安装目录下 jdk中的和jre中的证书都要导入
目录:
1.jdk中
E:\software\java\jdk1.6.0_25\jre\lib\security
2.jre中
E:\software\java\jre6\lib\security

keytool -import -alias yupeng -keystore cacerts -file E:\cert\cas.cer -trustcacerts;
分享到:
评论

相关推荐

    unable to find valid certification path to requested target 的问题

    NULL 博文链接:https://hyl198611.iteye.com/blog/1988113

    ERROR: Cause: unable to find valid certification path to requested target终极解决方法

    ##ERROR: Cause: unable to find valid certification path to requested target终极解决方法 各位兄弟,觉得我的方法有用,可以赞我一下的呦 如果你是和我一样安装完Android studio,运行第一个Android程序,发现...

    Spring boot maven项目报错unable to find valid certification path to requested target

    参考: ...目录 一、更改镜像 二、手动将需要的插件和依赖下载放到本地厂库 三、下载阿里网站的资格证书...四、设置maven的VM属性,这个成功解决问题 从https://start.spring.io/生成的spring boot项目,报错unable to f

    解决Android studio 3.6.1 出现Cause: unable to find valid certification path to requested target 报错的问题

    主要介绍了Android studio 3.6.1 出现Cause: unable to find valid certification path to requested target 报错的问题及解决方法,需要的朋友可以参考下

    jcenter.cer

    Studio升级3.5报unable to find valid certification path to requested target 解决证书问题

    Aandroid Studio所需要证书.zip

    解决Android Studio Cause: unable to find valid certification path to requested target问题所需要证书。具体安装方法请参考https://blog.csdn.net/wanghaifeng068/article/details/99935593

    InstallCert.zip

    mvn PKIX path building failed: 进行中央库授权, unable to find valid certification path to requested target

    PKIX path building failed

    sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    InstallCert.java工具及使用方法.zip

    解决方法: ... sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    tomcat解决跨域访问问题配置

    tomcat解决跨域访问问题,具体配置如下: 1、修改tomcat下的Conf/web.xml文件,在该文件内容中新增以下配置,注意,若该web.xml中存在其它filter,则需要将该filter放在所有filter前面; <filter-name>...

    gradle-trust-all:一个用于禁用 SSL 证书验证的 gradle 插件

    unable to find valid certification path to requested target 处理这种情况的常用 Java 方法是下载站点证书,将其导入密钥库并通过-Djavax.net.ssl.trustStore=... JVM 选项使用该密钥库。 有时

    MSSQL Compack3.5

    报这种“Unable to find the requested .Net Framework Data Provider. It may not be installed“错误时,需要安装这个东西。

    安卓java读取网页源码-2020-ByteDance-AndroidAppDevelop:大二暑期小学期,安卓开发

    利用不少于5个组件编写一个DEMO,并将交互结果输出到log 作业成果 总结 其中最麻烦的是配置Gradle,我的电脑连打开demo都会failed。 采用在线gradle,主路径按.gradle下属init.d的初始化文件,修改目标路径为指定...

    pb连接SQLSERVER2005问题解决

    pb连接SQLSERVER2005,提示如下错误:Unable to load the requested Database interface.Please make sure both the interface and client software are properly installed. 解决办法:下载ntwdblib.dll然后将其copy...

    ntwdblibaaaa

    用pb连数据库提示如下错误:unable to load the requested database interface.plesase make sure both the interface and client software are properly insta?是什么问题?重装PB后问题还在。

    tomcat跨域请求配置

    1、把这两个jar包放在tomcat的lib下。 2、在conf文件夹下找到web.xml。 3、在web.xml中添加如下代码: <filter-name>CORS <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class> ...

    The Boost C++ Libraries

    C++的Boost库书籍,详细探讨Boost库的各项特性,此书也提供了在线版 (https://theboostcpplibraries.com/) 供开发人员参考

    ntwdblib动态库.rar

    PB连接MSS SQL Server 提示unable to load the requested database interface,Please make sure both the interface and client software are properly installed

    DIBSection Class VB

    A DIB (Device Independent Bitmap) Section is a GDI object like a standard DIB but which additionally provides a pointer to the memory used to store the bitmap bits to which the creating ...

Global site tag (gtag.js) - Google Analytics