在配置cas单点登录时报HTTP Status 500 - javax.net.ssl.SSLException 的解决方法
2015-01-30 10:50
633 查看
在使用CAS单点登录页面上报以下错误:
HTTP Status 500 - javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-emptytype Exception reportmessage javax.net.ssl.SSLException: java.lang.RuntimeException:
Unexpected error: java.security. Invalid Algorithm Parameter Exception the trustAnchors parameter must be non-empty
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
CAS报这类型的错误,主要是安全证书没有导入到客户端的%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS目录下面,有可能是客户端有自带的jre运行环境,所以可以把证书重新导入到客户端自带的/JRE/LIB/SECURITY/CACERTS目录下面,或者把客户端的自带的jre运行环境删除,这样客户端程序就会用咱们自己安装的jre。
CAS证书导入到客户端的方法如下:
keytool -import -keystore "%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS"-file d:\mycerts.crt -alias tomcatgecko
HTTP Status 500 - javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-emptytype Exception reportmessage javax.net.ssl.SSLException: java.lang.RuntimeException:
Unexpected error: java.security. Invalid Algorithm Parameter Exception the trustAnchors parameter must be non-empty
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
CAS报这类型的错误,主要是安全证书没有导入到客户端的%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS目录下面,有可能是客户端有自带的jre运行环境,所以可以把证书重新导入到客户端自带的/JRE/LIB/SECURITY/CACERTS目录下面,或者把客户端的自带的jre运行环境删除,这样客户端程序就会用咱们自己安装的jre。
CAS证书导入到客户端的方法如下:
keytool -import -keystore "%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS"-file d:\mycerts.crt -alias tomcatgecko
相关文章推荐
- 在配置cas单点登录时 -javax.net.ssl.SSLException 的解决方法
- 【cas、tomcat】HTTP Status 500 - javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connec
- Cas单点登录配置SSL时遇到的javax.net.ssl.SSLPeerUnverifiedException问题的解决方法
- Cas单点登录配置SSL时遇到的javax.net.ssl.SSLPeerUnverifiedException问题的解决方法
- 【cas、tomcat】HTTP Status 500 - javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExc
- asp程序部署在IIS上时报http 500 错误的解决方法
- vb.Net中http+ssl问题的超级简单解决方法
- javax.net.ssl.SSLHandshakeException的解决方法
- 解决方法HTTP Status 500 - description The server encountered an internal error () that prevented it from fulfilling this request
- 解决weblogic.net.http.SOAPHttpsURLConnection incompatible with javax.net.ssl.HttpsURLConnection
- 解决sun.net.www.protocol.http.HttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection
- 出现 HTTP Status 500 - Servlet.init() for servlet springmvc threw exception 异常的原因及解决方法
- javax.net.ssl.SSLHandshakeException:PKIX path building failed解决方法的代码
- Linux下tomcat配置ssl中报错问题的解决javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExcepti
- httpclient对象请求:如果报这个错:javax.net.ssl.SSLException: hostname in certificate didn't match证书不匹配的主机名
- 新建ASP.NET项目的时候出现HTTP/1.1 500 Server Error的错误解决方法
- struts hibernate spring 环境配置时出现 HTTP Status 404 Servlet action is not available (解决方法)
- javax.net.ssl.SSLHandshakeException:PKIX path building failed解决方法
- Maven工程出现错误: 程序包javax.net.ssl不存在的解决方法
- jsp+tomcat+eclispe,http status 500解决方法