David.Turing's blog

 

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

(2006-03-14 20:03:53)   婷婷(16556907)
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

这个是因为你没有装好TrustCerts,如果你是用Tomcat,请务必检查Tomcat使用的JDK下的JRE(jre/lib/security/cacerts)中,是否已经安装了包含你所需的信任证书,如果没有,请Import,Keytool -import的命令,很简单的,如果你用的是Weblogic,你看看Weblogic Console的Keystore配置,有两项,你关注的应该是TrustKeystore的属性,里面默认的信任证书都是老外的那些,往里面Import你的证书就ok了。

posted on 2006-03-14 20:29 david.turing 阅读(30390) 评论(33)  编辑  收藏 所属分类: Security异常问题

评论

# re: 以后,SecuritySite的朋友请到这里提安全方面的问题,Re本贴就行了 2006-03-14 20:42 婷婷

是import我在S端的keystore吗??
导入的命令是这样的吗??
keytool -import -alias cacerts -file tomcat.cer
对吗??  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-14 20:59 david.turing

首先你要明白,你在导入信任证书
假设你的证书别名是tingting
证书文件名为tingting.cer
并且你要导入到cacerts这个证书库(默认保护密码为changeit)中,
keytool -import -trustcacerts -alias tingting -file tingting.cer -keystore cacerts -storepass changeit
请你密切关注SecureX,这个Eclipse插件会让你图形化完成上面的步骤。  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-14 21:32 婷婷

555555555,还是不行,导入是导入了,但是还是出现同样的错误,我把我的环境描述一下:
S端:jdk1.5.0 tomcat5.5
用%JAVA_HOME%\bin\keytool -genkey -alias tomcat1 -keyalg RSA 命令产生一个keystore.

C端:jdk1.5.0 tomcat
把服务器端的keystore拷贝到客户端
用了
keytool -export -alias tomcat -file tingting.cer
keytool -import -trustcacerts -alias tomcat -file tingting.cer -keystore cacerts -storepass changeit
接下来在jb里面编写java程序调用服务器端,然后报错!~~

faultString: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-14 21:44 david.turing

你还是装我的SecureX吧,ailas的这东西容易写错。  回复  更多评论   

# No trusted certificate found的错误我倒是解决了!现在有了新的问题! 2006-03-15 10:18 justin

我的CAS服务端已经配置好了,tomcat起的8080端口https://www.test.com:8443/websso/login 为CAS的login地址,其中域名www.test.com是局域网域名,是通过hosts文件编辑生成的。


在服务器端生成server证书:keytool -genkey -alias tomcat -keyalg RSA -keystore keystore-file
其中CN项目我填写的:www.test.com:8443
生成客户端所需要证书,客户端成功导入证书到JVM里面。


通过CAS的login页面验证以后,出现HTTPS hostname wrong: should be <www.test.com>   回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-15 10:23 david.turing

应改填写www.test.com
without 端口:0  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-15 10:56 justin

感谢david.turing,我在服务端生成证书的时候CN项填写错误,其实只需要填域名,不用加端口。。  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-15 13:30 婷婷

这种情况下可不可以把cn为www.test.com 换成机子所对应的ip地址阿??
  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-15 13:45 婷婷

david 麻烦你帮忙看看我下面的出错代码 那个问题还是没有解决,不胜感激!!
我在代码里加了: System.setProperty("javax.net.debug","all");

结果出错部分如下:
*** Certificate chain

chain [0] = [
[
Version: V1
Subject: CN=localhost, OU=buct, O=network, L=beijing, ST=beijing, C=cn
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4

Key: SunJSSE RSA public key:
public exponent:
010001
modulus:
89bea75d 084c0725 512dd733 2b917cb4 483290b9 7e8772fa 0f3d1bd7 5a0286da
c181efe5 6f6e3c55 229a0c2c 11ff4878 c40776c5 2ba3d3cd 8d364860 25ee17ef
ef4e0cc1 a2af53f6 9ba30426 ca2dc924 0f6d8545 d1e74d8b c3b02d0c cb722fd3
37652b7d 5168f1bf 4b185e3a 590fcb14 2fb19ccb c400febb 73f45ac0 54e1685b
Validity: [From: Tue Mar 14 10:38:43 CST 2006,
To: Mon Jun 12 10:38:43 CST 2006]
Issuer: CN=localhost, OU=buct, O=network, L=beijing, ST=beijing, C=cn
SerialNumber: [ 44162cb3]

]
Algorithm: [MD5withRSA]
Signature:
0000: 6E 06 45 41 91 3E B9 87 B7 A2 9E 53 F8 75 A5 7C n.EA.>.....S.u..

0010: CE 5C 0D 9D 1B EB 5D 8A 20 35 AD 15 13 35 45 92 .\....]. 5...5E.

0020: 4F 28 4B 23 EB 0B CC 3C 75 38 20 46 9F A8 09 1C O(K#...<u8 F....

0030: 7F 2D C6 53 F0 89 84 93 9B 96 FB A5 9F AB 0F CB .-.S............

0040: 1B F2 15 93 E5 9E 6B 1F E3 AC AB A7 F8 A7 9B B2 ......k.........

0050: CE 8B A9 03 4A CE 65 D6 DD EB 91 8A 3E 29 38 9F ....J.e.....>)8.

0060: 40 83 BF 8F 5B 93 96 33 45 E9 1F 69 D6 77 F7 30 @...[..3E..i.w.0

0070: C1 4F DF E0 96 4C CD A2 02 9B B7 FF 64 9A E7 41 .O...L......d..A


]

***

main, SEND TLSv1 ALERT: fatal, description = certificate_unknown

main, WRITE: TLSv1 Alert, length = 2

main, called closeSocket()

main, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-15 13:55 david.turing

该异常发生在SSL握手阶段,由于你的localhost的服务器不能提供一个你(也是localhost)信任的证书,请检查你jre/lib/security/cacerts中是否已经含有这个CN=localhost的证书项。完毕。  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-15 13:57 婷婷

程序代码:

package https_matrix;

import java.util.StringTokenizer;

public class juzhen {
public juzhen() {
}

//获得JSP页面的二维矩阵,以空格分隔行,以逗号分割列
public int[][] getMatrix(String str) {
//获得矩阵的行和列
String strMiddle = str;
StringTokenizer strRow = new StringTokenizer(strMiddle,"\n");
int row = strRow.countTokens(); //矩阵行数
int col = 0;
if(strRow.hasMoreTokens()){
StringTokenizer strCol = new StringTokenizer(strRow.nextToken(), ","); //逗号分隔
col = strCol.countTokens(); //矩阵列数
}
//System.out.println("row = " + row + "\t" + "col = " + col);

int[][] juzhen = new int[row][col];

StringTokenizer st = new StringTokenizer(str,"\n"); //获得JSP页面矩阵
int i = 0, j = 0;
String strs = "";
//处理每一行
while(st.hasMoreTokens()) {
StringTokenizer stRow = new StringTokenizer(st.nextToken(), ","); //逗号分隔
while(stRow.hasMoreTokens()){
strs = stRow.nextToken();
juzhen[i][j++] = Integer.parseInt(strs.trim());
}
i++;
j = 0;
}

return juzhen;
}


//矩阵相乘
public int[][] getResult(int[][] a, int[][] b){
System.out.println("row = " + a.length + "\t" + "col = " + b[0].length);
try {
long Ls = System.currentTimeMillis();
MatrixServiceLocator s=new MatrixServiceLocator();
long Le = System.currentTimeMillis();

long Ws = System.currentTimeMillis();
Matrix p=s.getMatrix();
long We = System.currentTimeMillis();

long Ms = System.currentTimeMillis();
int[][] q =p.multi(a,b);
long Me = System.currentTimeMillis();

long locator = Le - Ls;
long getservice = We - Ws;
long getmethod = Me - Ms;

System.out.println("定位服务时间为:"+locator+ "微秒");
System.out.println("得到服务时间为:"+getservice+ "微秒");
System.out.println("得到方法时间为:"+getmethod+ "微秒");

return(q);

}catch(Exception e) {
System.out.println("Error");
e.printStackTrace();
return a;
}

}
public static void main(String[] args) {
System.setProperty("javax.net.debug","all");
String str = "1,4,6,3\n5,3,6,3\n6,3,5,4\n5,3,5,2\n5,3,5,2";
String str1 = "1,1,1\n2,2,2";
String str2 = "1,1\n2,2\n3,3";
juzhen jz = new juzhen();

int[][] rs = jz.getResult(jz.getMatrix(str1),jz.getMatrix(str2));
for(int i = 0; i < rs.length; i ++) {
for (int j = 0; j < rs[0].length; j++) {
System.out.print(rs[i][j] + "\t");
}
System.out.println();
}
}
}
  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-15 14:28 婷婷

怎样检查jre/lib/security/cacerts中是否已经含有这个CN=localhost的证书项阿??
  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-15 14:49 婷婷

我检查了cacerts,里面有我加入的那项阿 :

您的 keystore 包含 31 输入

verisignclass1g3ca, 2004-3-26, trustedCertEntry,
认证指纹 (MD5): B1:47:BC:18:57:D1:18:A0:78:2D:EC:71:E8:2A:95:73
equifaxsecureebusinessca1, 2003-7-19, trustedCertEntry,
认证指纹 (MD5): 64:9C:EF:2E:44:FC:C6:8F:52:07:D0:51:73:8F:CB:3D
verisignclass2g2ca, 2004-3-26, trustedCertEntry,
认证指纹 (MD5): 2D:BB:E5:25:D3:D1:65:82:3A:B7:0E:FA:E6:EB:E2:E1
verisignclass3g3ca, 2004-3-26, trustedCertEntry,
认证指纹 (MD5): CD:68:B6:A7:C7:C4:CE:75:E0:1D:4F:57:44:61:92:09
entrustglobalclientca, 2003-1-9, trustedCertEntry,
认证指纹 (MD5): 9A:77:19:18:ED:96:CF:DF:1B:B7:0E:F5:8D:B9:88:2E
tomcat, 2006-3-15, trustedCertEntry,
认证指纹 (MD5): 88:96:69:B3:67:01:2B:1B:B8:60:B5:7B:53:54:87:13
。。。

最下面那个就是我加入的,可是怎么还是说找不到证书呢??原因出在哪里呢??
  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-15 16:47 david.turing

1,检查你的Tomcat使用了什么JDK
2,你的Tomcat的Server.conf文件配置的Keystore指向了你的证书私钥所在的Keystore没有?如果没有,请加入。

还有,你上面贴的代码似乎跟你的问题无关。  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-18 21:27 tingting

我的问题终于解决拉!!
多亏了david提醒我,因为我用的是jb,而运行时jb跑的是他自己带的jdk,发现这个疏忽了以后,重新导入证书,运行通过!!~~
cheers~~~

太感谢david了,真是我的救命恩人:)

再说一次谢谢:P



  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-20 12:57 david.turing

u r welcome:)
  回复  更多评论   

# 关于CAS开源项目对ASP,PHP等非JAVA WEB应用的支持 2006-03-20 17:04 justin

看了CAS工作机制,好像只能支持JSP的WEB站点SSO,如果我有ASP,或者PHP的WEB应用,是否能整合.或者对于其他语言的WEB应用整合CAS还提供了什么其它的方法吗?  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-25 16:57 dannisliang

各位高手请帮小弟一个忙
本人想在IIS下用OPENSSL的证书,在网上找了篇文章如下:
=================================================================
作者:besunny
发表时间:2003-5-22 20:48:10
修改文章
前段时间写了点东西,可是一直不能找到客户端证书,现在又没有时间了,先贴出来,大家一起想想办法,就算为网站做贡献 :)

1. 生成自签名根证书
openssl req -x509 -newkey rsa:1024 -keyout cakey.pem -out cacert.pem -days 3650 –config e:\openssl-0.9.6h\apps\openssl.cnf
输入下列信息:
PEM pass phrase:也就是密码,输入后牢记。
然后需要输入下列信息:
Country Name: CN //两个字母的国家代号
State or Province Name: guang dong //省份名称
Locality Name: guang zhou //城市名称
Organization Name: sunrising //公司名称
Organizational Unit Name: home //部门名称
Common Name: besunny //你的姓名(要是生成服务器端的证书一定要输入域名或者ip地址)
Email Address: be-sunny@163.com Email地址

把cakey.pem 拷贝到out32dll\demoCA\private, 把cacert.pem拷贝到out32dll\demoCA
注: 我用的是openssl提供的openssl.cnf,openssl.exe所在目录为out32dll

2.用IIS WEB SERVER产生一个证书申请certreq.txt
打开IIS WEB SERVER——〉站点属性——〉目录安全性——〉服务器证书——〉创建一个新证书——〉现在准备请求,但稍候发送——〉
命名和安全设置:名称:server,位长:1024
组织信息:组织:sunrising,组织部门:home
站点的公用名称:网站名称(或者服务器端的ip)
地理信息:国家:CN,省市:guang dong,市:guang zhou(注意一定要与先前的根证书相同,否则签名的时候会出错误)
生成certreq.txt。
把certreq.txt拷贝到out32dll所在目录

3. 用自己的CA对证书申请签名。
openssl ca -in certreq.txt -out server.pem –config e:\openssl-0.9.6h\apps\openssl.cnf
把pem格式证书转化为x509格式
openssl x509 -in server.pem -out server.cer
4.导入服务器证书
打开IIS WEB SERVER——〉站点属性——〉目录安全性——〉服务器证书——〉处理挂起并安装证书——〉选择生成的server.cer
5.生成客户端证书
openssl req -newkey rsa:1024 -keyout clikey.pem -out clireq.pem -days 365 –config e:\openssl-0.9.6h\apps\openssl.cnf
输入下列信息:
PEM pass phrase:也就是密码,输入后牢记。
然后需要输入下列信息:
Country Name: CN //两个字母的国家代号
State or Province Name: guang dong //省份名称
Locality Name: guang zhou //城市名称
Organization Name: sunrising //公司名称
Organizational Unit Name: home //部门名称
Common Name: client //你的姓名(要是生成服务器端的证书一定要输入域名或者ip地址)
Email Address: be-sunny@openssl.cn Email//地址
a chanllenge password:123456//证书保护密码
an optional company name:sunrising//
签名:
openssl ca -in clireq.pem -out client.crt –config e:\openssl-0.9.6h\apps\openssl.cnf
生成pkcs12格式的证书
openssl pkcs12 -export -clcerts -in client.crt -inkey clikey.pem -out client.p12
安装信任的根证书
把cacert.pem改名为cacert。cer,在client端的IE中使用"工具 ' Internet
选项 ' 内容 ' 证书 ' 导入"把
我们生成的CA根证书导入,使其成为用户信任的CA。
安装个人证书
把client.p12导入到client端的IE中作为个人证书

全过程结束。
=================================================================
但是我按照整个步骤成功做完后在客户端选择证书时找不到我安装的证书,请如何解决次问题,请高手执教!!!
  回复  更多评论   

# cas中jaas认证实现的问题 2006-03-27 21:22 sso

David,你好,曾看过你说的cas和JGuard结合的贴子。说在myselfhandler中的boolean authenticate(javax.servlet.ServletRequest request,String username,String password)方法中实现jaas登录认证,配置调用JGuard提供的各种登录模块。但是CAS中的myselfhandler本身不就是在Web.XML可配置的吗?可以根据不同需要选择不同的认证Handler。这种做是否重复进行了“可插拔”的配置。如果不利用JGuard提供的登录模块,而是用自己开发的各种登录方式,什么配置方法最好呢?  回复  更多评论   

# CAS多个WEB应用配置问题 2006-03-29 18:12 justin

David 你好。我已经按照网上的实例,成功在单个web应用下配置了CAS~并且加入了我自的验证模块,一切功能都正常,现在出现问题,当我在2台机器上配置2个不同的WEB应用,先在A应用登录。。然后点击一个连接到B应用。。CAS再次弹出登录提示。。开始折腾了好半天,结果最重要的东西没有解决~~我是不是需要再在服务端写一个状态查询方法,用于判断这个用户是否有登录过??还是通过客户端的相关配置,就可以解决?  回复  更多评论   

# webservice的并发问题 2006-03-30 14:30 外星人

我用java开发了一套工作流系统,通过webservice提供外部接口,中间件用的是jboss3.x,对方用的是.net开发的项目,在测试过程中,如果有10个并发,只能返回9个人的数据,请问怎么解决?  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-03-31 16:55 zhangfan

你好,我想问问为什么我在weblogic配置SSO的时候老出现以下的问题:
C:\Program Files\Support Tools>ktpass -princ HTTP/ZHANGFAN@HBCA.ORG.CN -mapuser
ZHANGFAN -pass 11111111 -out c:\ZHANGFAN.KEYTAB -crypto des-cbc-md5
Failed to set property "servicePrincipalName" to "HTTP/ZHANGFAN" on Dn "CN=zhang
fan,CN=Users,DC=HBCA,DC=ORG,DC=CN": 0x14.
WARNING: Unable to set SPN mapping data.
If ZHANGFAN already has an SPN mapping installed for HTTP/ZHANGFAN, this is n
o cause for concern.
Key created.
Output keytab to c:\ZHANGFAN.KEYTAB:

Keytab version: 0x502
keysize 52 HTTP/ZHANGFAN@HBCA.ORG.CN ptype 1 (KRB5_NT_PRINCIPAL) vno 1 etype 0x3
(DES-CBC-MD5) keylength 8 (0xe5c1c1105d1657bc)
Account has been set for DES-only encryption.
  回复  更多评论   

# SecureX的源码在什么地方? 2006-04-06 14:40 Ivan Chen

通过sf.net的CVS和SVN都下载不了。  回复  更多评论   

# SecurityX keytool import p12 file form xca export files with chain 2006-04-16 16:42 坎大哈

export p12 with chain form xca

&

ECLIPSE side

keytool

new file.pks

import key pair

(first time )
can not get the algorithm---->recreate the cer ,problem resolve

(second time ,please help me )
(It's right password .)
(get file sucess)
(get algorithm , matched)
after import...............
java.lang.IllegalArgumentException: Argument cannot be null
org.eclipse.swt.SWT.error(SWT.java:2926)
org.eclipse.swt.SWT.error(SWT.java:2865)
org.eclipse.swt.SWT.error(SWT.java:2836)
org.eclipse.swt.widgets.Widget.error(Widget.java:395)
org.eclipse.swt.widgets.Decorations.setText(Decorations.java:1338)
org.dev2dev.client.password.DlgGetNewPassword.createContents(DlgGetNewPassword.java:118)
org.dev2dev.client.password.DlgGetNewPassword.open(DlgGetNewPassword.java:102)
org.dev2dev.client.SecureXShell.importKeyPair(SecureXShell.java:1862)
org.dev2dev.client.SecureXShell.access$6(SecureXShell.java:1745)
org.dev2dev.client.SecureXShell$7.widgetSelected(SecureXShell.java:405)
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
org.eclipse.core.launcher.Main.basicRun(Main.java:278)
org.eclipse.core.launcher.Main.run(Main.java:973)
org.eclipse.core.launcher.Main.main(Main.java:948)
  回复  更多评论   

# re:zhangfan 2006-04-16 16:45 坎大哈

WARNING: Unable to set SPN mapping data.
If ZHANGFAN already has an SPN mapping installed for HTTP/ZHANGFAN, this is n


这个问题,是说,你已经有一个SPN mapping for HTTP/ZHANGFAN

如果想解决这个问题,最直接的方法就是使用setspn.exe 先去 delete HTTP/ZHANGFAN 然后再执行ktpass  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-04-16 16:59 david.turing

Ivan Chen同学,有兴趣加入到SecureX开发组吗?我现在没有放代码上去,因为都没有用户下载:(
如果有兴趣,请加入SecureSite群14966586。  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-11-15 17:56 万里

刚刚开始接触web service security 能否详细的介绍一下哦
  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2006-12-21 12:42 StillSea

谢谢你,问题解决了。  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2007-01-08 14:03 zxsan

我使用xca导出证书为pkcs#12后,在securex里导入密匙对时提示如下错误
org.dev2dev.security.keytool.CryptoException: Could not load keystore as type 'PKCS12'.   回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2007-02-05 09:30 david.turing

请阅读http://www.blogjava.net/security/archive/2007/01/07/SecureXRCP.html
------------
我使用xca导出证书为pkcs#12后,在securex里导入密匙对时提示如下错误
org.dev2dev.security.keytool.CryptoException: Could not load keystore as type 'PKCS12'.   回复  更多评论   

# re: javax.ValidatorException: No trusted certificate found 2007-10-10 14:44 liufeiyuan

我是一个新手,对ssl刚了解,最近要做一个工行的网上缴费,我们做客户端,我在写了一个main方法做测试的时候,也报了一个和上面相同的错误。我想问一下是不是不能用main方法来做测试啊?
  回复  更多评论   

# re: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found 2008-06-20 16:36 Fangyi

David:
你好,我最近遇到一个很困难的事,Java HttpClient 如何通过USBKey去建立 SSL连接呢?而我这个USBKey的PrivateKey是不可导出的。
我也用了SecureX,可是也在getRSAPrivateKey时出错了,我不知道为什么。
Good Luck.
Fangyi.   回复  更多评论   

# 客户端信任所有证书或是服务器端添加证书两种方式解决 2013-08-28 11:41 Trinea

可通过客户端信任所有证书或是服务器端添加证书两种方式解决,具体原因分析及解决方式见:http://www.trinea.cn/android/android-java-https-ssl-exception-2/  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

常用链接

留言簿(110)

我参与的团队

随笔分类(126)

随笔档案(155)

文章分类(9)

文章档案(19)

相册

搜索

积分与排名

最新随笔

最新评论

阅读排行榜

评论排行榜