Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Examples » How to work with certificates in Eclipse?
How to work with certificates in Eclipse? [message #756872] Tue, 15 November 2011 12:03
mailbk is currently offline mailbkFriend
Messages: 2
Registered: November 2011
Junior Member
I tried this example:
herongyang.com/JDK/SSL-Socket-Server-Example-SslReverseEchoer.html
herongyang.com/JDK/SSL-Socket-Client-Example-SslSocketClient.html

Then I perform actions similar to these:
herongyang.com/JDK/SSL-Socket-Make-Self-Signed-Certificates-Trusted.html

but I don't know what to do instead of this command:
\jdk\bin\java -cp . "-Djavax.net.ssl.trustStore=public.jks" 
   SslSocketClient


so I get an exception only:
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown Source)
	at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
	at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
	at sun.nio.cs.StreamDecoder.read(Unknown Source)
	at java.io.InputStreamReader.read(Unknown Source)
	at java.io.BufferedReader.fill(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at Server.main(Server.java:40)
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
	at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(Unknown Source)
	at Server.printSocketInfo(Server.java:68)
	at Server.main(Server.java:35)
Previous Topic:SWT Section can have focus
Next Topic:RCP templates are not available in selection list
Goto Forum:
  


Current Time: Sun Nov 23 14:48:49 GMT 2014

Powered by FUDForum. Page generated in 0.08753 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software