[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Jessie-discuss] please help me.
From: |
Haoyang Lin |
Subject: |
[Jessie-discuss] please help me. |
Date: |
Tue, 19 Sep 2006 13:42:34 +0200 |
Hello Casey,
I have some problems with testserver and testclient in jessie-1.0.1.
My system : Suse 10.1
VM: jamvm
compiler : jikes
I have installed the classpath-0.92 and use it. So I have a little changes in testserver and testclient. I did the compile with jikes successfully and got the testserver.class and testclient.class.
now I want to run the testserver and testclient. The attached files are both of the java-files, key and certification. please see them.
created the certification and key with :
openssl req -new -nodes -x509 -out cert.pem -keyout key.pem -days 365 -subj "/C=US/ST=CA/L=City/CN=localhost/emailAddress=address@hidden".
command line for testserver: jamvm testserver
command line for testclient: jamvm testclient localhost 4433
then I got the errors at the testserver:
accepting on port 4433
gnu.javax.net.ssl.provider.SSLSocket [ Socket[addr=127.0.0.1/127.0.0.1,port=21623,localport=4433] ]
java.io.IOException: Datenbergabe unterbrochen (broken pipe)
at gnu.java.net.VMPlainSocketImpl.write(Native Method)
at gnu.java.net.VMPlainSocketImpl.write(VMPlainSocketImpl.java:243)
at gnu.java.net.PlainSocketImpl.write(PlainSocketImpl.java:369)
at gnu.java.net.PlainSocketImpl$SocketOutputStream.write(PlainSocketImpl.java:498)
at gnu.javax.net.ssl.provider.ProtocolVersion.write(ProtocolVersion.java:96)
at gnu.javax.net.ssl.provider.RecordOutputStream.write(RecordOutputStream.java:179)
at gnu.javax.net.ssl.provider.SSLSocketOutputStream.write(SSLSocketOutputStream.java:101)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:109)
at java.io.FilterOutputStream.flush(FilterOutputStream.java:96)
at gnu.javax.net.ssl.provider.SSLSocket.doServerHandshake(SSLSocket.java:2578)
at gnu.javax.net.ssl.provider.SSLSocket.startHandshake(SSLSocket.java:525)
at testserver.main(testserver.java:35)
got the errors at the testclient:
javax.net.ssl.SSLPeerUnverifiedException: could not verify peer certificate: C=US,ST=CA,L=City,CN=localhost,1.2.840.113549.1.9.1=address@hidden
at gnu.javax.net.ssl.provider.SSLSocket.doClientHandshake(SSLSocket.java:1558 )
at gnu.javax.net.ssl.provider.SSLSocket.startHandshake(SSLSocket.java:521)
at gnu.javax.net.ssl.provider.SSLSocket.checkHandshakeDone(SSLSocket.java:1116)
at gnu.javax.net.ssl.provider.SSLSocketOutputStream.write(SSLSocketOutputStream.java:94)
at gnu.javax.net.ssl.provider.SSLSocketOutputStream.write(SSLSocketOutputStream.java:87)
at testclient.main(testclient.java:53)
Caused by: java.security.cert.CertificateException
at gnu.javax.net.ssl.provider.X509TrustManagerFactory$Manager.checkTrusted(X509TrustManagerFactory.java:278)
at gnu.javax.net.ssl.provider.X509TrustManagerFactory$Manager.checkServerTrusted(X509TrustManagerFactory.java:228)
at gnu.javax.net.ssl.provider.SSLSocket.doClientHandshake(SSLSocket.java:1530)
...5 more
I am a new one in jessie and security so that I really don't know why and how I can correctly solve the problems. Please help me.
Thank you in advance.
best regards
haoyang
testclient.java
Description: Text Data
testserver.java
Description: Text Data
cert.pem
Description: Text document
key.pem
Description: Text document
- [Jessie-discuss] please help me.,
Haoyang Lin <=