Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
|
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 23rd, 2011, 11:48 PM
Registered User
 
Join Date: Dec 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Question Problem of running SSLClientWithClientAuthExample

Hi David,

When I run SSLClientWithClientAuthExample and SSLServerWithClientAuthExample, I have got the following exception.
How can I solve Problem.

thanks

Jacky


The stack trace on the client side:

Exception in thread "main" javax.net.ssl.SSLHandshakeException:sun.security.v alidator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certificaiton path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.jav a;192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl .java:1868)
at sun.security.ssl.Handshaker.fatalSE(Handshader.jav a;276)
at sun.security.ssl.Handshader.fatalSE(Handshader.jav a:270)
at sun.security.ssl.ClientHandshader.serverCertufucat e(ClientHandshader.java:1337)
at sun.security.ssl.ClientHandshader.processMessage(C lientHandshaker.java:154)
at sun.security.ssl.Handshader.processLoop(Handshader .java:868)
at sun.securiity.ssl.handshader.process_record(handsh ader.java:804)
at sun.securiyt.ssl.SSLSocketImpl.readRecord(SSLSocke tImpl.java:998)
at sun.securiyt.ssl.SSLSocketImpl.performInitialHands hake(SSLSocketImpl.java:1294)
at sun.securiyt.ssl.SSLSocketImpl.writeRecord(SSLSock etImpl.java:685)
at sun.securiyt.ssl.AppOutputStream.write(AppOutputSt ream.java:111)
at java.io.OutputStream.write(OutputStream.java:75)
at chapter10.SSLClientExampe.doProtocol(SSLClientExam ple.java:26)
at chapter10.SSLClientWithClientAuthExample.main(SSLC lientWithClientAuthExample.java:47)

caused by:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception:unable to find valid certificaiton path to requested target.
at sun.security.validator.PKIXValidator.doBuild(PKIXV alidator.java:385)
at sun.security.validator.PKIXValidator.engineValidat e(PKIXValidator.java:292)
at sun.security.validator.Validator.Validate(PKIXVali dator.java:260)
at sun.security.ssl.X509TrustManagerImpl.validate(X50 9TrustmanageImpl.java:326)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted (X509TrustmanageImpl.java:231)
at sun.security.ssl.X509TrustManagerImpl.checkServerT rusted(X509TrustmanageImpl.java:126)
at sun.security.ssl.ClientHandshaker.serverCertificat e(CleintHandshader.java:1319)


The stack trace on the server side:
Exception in thread "main" javax.net.ssl.SSLHandshadeException:Receive fatal alert: certificate_unknow

at sun.security.ssl.Alerts.getSSLException(Alerts.jav a:192)
at sun.security.ssl.Alerts.getSSLException(Alerts.jav a:154)
at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocket Impl.java:1943)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocke tImpl.java:1059)
at sun.security.ssl.SSLSocketImpl.performInitialHands hade(SSLSocketImpl.java:1294)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSock etImpl.java:685)
at java.io.OutputStream.write(OutputStream.java:75)
at chatper10.SSLServerExample.doProtocol(SSLServerExa mple.java;29)
at chatper10.SSLServerWithClientAuthExample.main(SSLS erverWithClientAuthExampe.java:24)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem for running X509V1CreateExample jacky BOOK: Beginning Cryptography with Java 1 December 13th, 2011 08:20 PM
Problem while running EJB Q4Java EJB 2 June 12th, 2011 11:42 AM
Problem running a JSP arzamendip Pro JSP 0 September 11th, 2006 03:48 PM
problem in running jsp rkt_mkp123 Pro JSP 3 July 23rd, 2006 02:57 AM
Php running problem Yee PHP How-To 5 October 26th, 2004 08:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.