• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

SSLHandshakeException with keys imported

 
Ranch Hand
Posts: 1906
3
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm hoping someone can help me with this - I'm absolutely stumped.

I'm trying to open a connection with a hand-coded client to a web service. The code in question is working fine in my insecure (internet) environment over https/ssl. When I move into the secure (network not connected to the internet) environment, though, it's giving me the handshake exception on the attempt to connect.

I've verified that the appropriate X.509 certificates to connect to the server are in my keystore in the secure environment - it's just frustrating because the code works fine in one environment and not the other, when they're configured (otherwise) similarly. Is there any other reason that it would throw the exception?

The code I use to 'override' the default certs is below. Any help would be welcome.

 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what exactly does the exception say? Which JRE is your code using? Is it a Sun or IBM JRE?
 
Theodore Casser
Ranch Hand
Posts: 1906
3
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, we discovered the problem this AM - while the keys were imported into the cacerts keystore we thought the JRE was using, it turns out that the JRE was pointing to different one. Importing the missing key there worked.
 
You've gotta fight it! Don't give in! Read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic