• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Websphere 5.1 unknown certificate problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I try to make SSL/TLS connection from my Websphere 5.1 application to Active Directory on the foreign server. I develop in WSAD 5.1 (websphere and wsad are new to me). I got javax.net.ssl.SSLHandshakeException Unknown certificate. I've decided to run the piece of code responsible for connection on standard JDK. I've installed server's certificate in jre keystore, run it and it works fine.
After reading a lot about the problem i've installed the same certificate in the WSAD/runtime/.../DummyServerTrustFile.jks and WSAD/runtime/../java/.../cacerts file but it doesn't work. When I try make SSL connection I usually got Socked is closed exception and sometimes javax.net.ssl.SSLHandshakeException unknown certificate. When I try to make TLS connection I got unknown certificate all the time. Moreover I pasted some code responsible for making only handshake connection (I found on web, some article called 'no more unknown certificate' can't find it now) and it gave me unknown CA exception thrown from com.ibm.jsse (on my jdk I use sun jsse lib where it works fine). Well i played a lot with setting javax.net.ssl.trustStore and other settings, but I can't figure it out.
Can someone help me please? I think its wrong environment(keystores) setting problem or something.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Wojciech,

Were you able to resolve this issue? I am running into the same exact issue. Any help is highly appreciated.

Thanks a lot!
 
Wojciech Kicior
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
It occured, that the certificates I was using had some unsupported (by java) extensions. I figure it out by running piece of my code on standard J2SE jre and it gave me sensible exception, that those certificate extensions are not supported.
I had to write my own TrustFactoryManager(or something like this, can't remember the name right now) class.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic