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 07:03
mailbk is currently offline mailbk
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: Wed Aug 20 10:55:37 EDT 2014

Powered by FUDForum. Page generated in 0.01455 seconds