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

Certificate is present in cacert file but throwing ssl exception

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have 2 apps installed on 2 different servers (1) hosted in glassfish (2) a batch server (standalone java app). Both apps are using a common java program (in form of a jar file) to call an external server. I am using 'CloseableHttpClient' to make connection to that external third party server. from my server one (glassfish) I am able to call and get response from the external server but same program on batch server is throwing below SSL exceptoion


Note - this exception is being thrown only from batch server not from the admin server (hosted in glassfish).

After googling this error found that certificate obtained by external server might not be issued by some trusted authority so i imported certificate by using 'installCert' (this java program).

Now verified the certificate in cacert using keytool command

keytool -list -keystore cacerts



and i can see that external certificate is listed in trusted certificates list. but still getting above SSL exception.

Any thoughts guys? why i am not getting any sort of SSL expectation from admin server (glassfish) which is also using same java code? Does glassfish automatically imports certificates just like browsers do?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic