This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Spring ssl web servicec client bad certificate error

 
Ranch Hand
Posts: 45
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using spring web-service client to call a web service. The web service performs mutual authentication. We have been provided with .p12 (PCKS12) client certificate. I exported it to JKS using keytool.

Then I have provided JKS keystore to Wss4jSecurityInterceptor. But I receive following exception. Not sure what the problem is?

org.springframework.ws.client.WebServiceIOException: I/O error: Received fatal alert: bad_certificate; nested exception is javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate


Below is my Wss4jSecurityInterceptor entry in applicationContext.xml file.



 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this line does not look valid for starters:



classpaths should not have file URL's. Try sticking it in src/main/resources assuming this is a maven project and change that to "classpath:test.jks"
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic