Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 19th, 2005, 08:07 AM
khurramkhan1974 khurramkhan1974 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 40 khurramkhan1974 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 23 sec
Reputation Power: 8
javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate

Can anyone please HELP me with this.

I have a client that makes an RPC call through SOAP to a server method over SSL. I have configured tomcat for the ssl communication. My tomcat seems to be behaving alright but I can' t say this with 100% surity though due to this exception. Anyways please look at the following stacktrace and give me an explanation as to what this exception is and how can I fix it.

AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
faultActor: null
faultDetail:
stackTrace: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java: 244)
at org.apache.axis.transport.http.HTTPSender.getSecureSocket(HTTPSender.java:156)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:116)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at sslsoap.MyBeanSoapBindingStub.getSample(MyBeanSoapBindingStub.java:81)
at sslsoap.MyBeanSoapBindingSkeleton.getSample(MyBeanSoapBindingSkeleton.java:65)
at sslsoapclient.Client.main(Client.java:28)


javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at sslsoap.MyBeanSoapBindingStub.getSample(MyBeanSoapBindingStub.java:81)
at sslsoap.MyBeanSoapBindingSkeleton.getSample(MyBeanSoapBindingSkeleton.java:65)
at sslsoapclient.Client.main(Client.java:28)
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java: 244)Exce 1: ; nested exception is:
javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate

at org.apache.axis.transport.http.HTTPSender.getSecureSocket(HTTPSender.java:156)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:116)
... 12 more

I would appreciate any feedback I get in this regard.
Thanks.

Reply With Quote
  #2  
Old January 19th, 2005, 10:12 AM
tfecw tfecw is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Nov 2004
Location: Washington DC
Posts: 2,748 tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level)tfecw User rank is General 9th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 3 Days 6 h 49 m 8 sec
Reputation Power: 1569
Send a message via AIM to tfecw
hmm i've been dealing with SSL crap for the past 2 weeks at work, Unfortunatly it's weblogic, not tomcat. From this bit's i've picked up here and there I'm going to say your probably haven't added the certificate to the cert chain.

Because of the error we know that your code is trying to connect, so the ssl stuff looks to be working. Look at some documentation on the truststore(i think this is a tomcat thing), you might have to look at something called keytool (java deally)

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 2 - Follow our Sitemap