You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kevin Pang <la...@hotmail.com> on 2001/05/15 18:34:41 UTC
About JSSE sample "URLReader"
Hi All,
It's me again :<, after tomcat's SSL's user-guide, I began to try the sample
URLReader, (through a Socket 5 proxy, it looks like the programm passed it),
and got an exception:
Exception in thread "main" java.net.SocketException: Connection reset by
peer: JVM_recv in socket input stream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read
(SocketInputStream.java:86)
at java.net.SocketInputStream.read
(SocketInputStream.java:102)
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a ([DashoPro-V
1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect ([Da
shoPro-V1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openSer
ver([DashoPro-V1.2-120198]) at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.l
([DashoPro-V1.2-120198]) at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>
([DashoPro-V1.2-120198]) at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>
([DashoPro-V1.2-120198]) at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a
([DashoPro-V1.2-120198]) at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a
([DashoPro-V1.2-120198]) at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.co
nnect([DashoPro-V1.2-120198]) at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.ge
tInputStream([DashoPro-V1.2-120198]) at java.net.URL.openStream
(URL.java:798)at URLReaderWithOptions.main
(URLReaderWithOptions.java:67)
when I set javax.net.debug=all, got the following information:
keyStore is :
keyStore type is : jks
init keystore
init keymanager of type SunX509
trustStore is: D:\Program Files\IBM\VisualAge for
Java\ide\program\lib\security\cacerts
trustStore type is : jks
init truststore
adding as trusted cert: [
[
Version: V1
Subject: OU=Class 3 Public Primary Certification Authority, O="VeriSign,
Inc.", C=US
Signature Algorithm: MD2withRSA, OID = 1.2.840.113549.1.1.2
Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@2d3d
Validity: [From: Mon Jan 29 01:00:00 GMT+01:00 1996,
To: Thu Jan 08 00:59:59 GMT+01:00 2004]
Issuer: OU=Class 3 Public Primary Certification Authority, O="VeriSign,
Inc.", C=US
SerialNumber: [ e49efdf3 3ae80ecf a5113e19 a4240232 ]
]
Algorithm: [MD2withRSA]
Signature:
0000: 61 70 EC 2F 3F 9E FD 2B E6 68 54 21 B0 67 79 08 ap./?..+.hT!.gy.
0010: 0C 20 96 31 8A 0D 7A BE B6 26 DF 79 2C 22 69 49 . .1..z..&.y,"iI
0020: 36 E3 97 77 62 61 A2 32 D7 7A 54 21 36 BA 02 C9 6..wba.2.zT!6...
0030: 34 E7 25 DA 44 35 B0 D2 5C 80 5D B3 94 F8 F9 AC 4.%.D5..\.].....
0040: EE A4 60 75 2A 1F 95 49 23 B1 4A 7C F4 B3 47 72 ..`u*..I#.J...Gr
0050: 21 5B 7E 97 AB 54 AC 62 E7 5D EC AE 9B D2 C9 B2 ![...T.b.]......
0060: 24 FB 82 AD E9 67 15 4B BA AA A6 F0 97 A0 F6 B0 $....g.K........
0070: 97 57 00 C8 0C 3C 09 A0 82 04 BA 41 DA F7 99 A4 .W...<.....A....
]
adding as trusted cert: [
[
Version: V1
Subject: OU=Class 1 Public Primary Certification Authority, O="VeriSign,
Inc.", C=US
Signature Algorithm: MD2withRSA, OID = 1.2.840.113549.1.1.2
Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@6c5f
Validity: [From: Mon Jan 29 01:00:00 GMT+01:00 1996,
To: Wed Jan 08 00:59:59 GMT+01:00 2020]
Issuer: OU=Class 1 Public Primary Certification Authority, O="VeriSign,
Inc.", C=US
SerialNumber: [ 325033cf 50d156f3 5c81ad65 5c4fc825 ]
]
-------- too long, abbreviated here
I searched the sun's JSSE forum, I'm surprised that too many people have
problems with these simple samples and nearly no clear answer. so I want to
asked here, sorry for a long message :-)
TIA
Kevin