Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

SSL Clarification

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have an application in a local GlassFish instance trying to access a web service in a remote GlassFish server. I get this exception:



Therefore, I run a little program to get the certificate of the remote server and then, I import it into the local GlassFish truststore cacerts.jks and then, I get this exception:



I think I'm doing something wrong.

Any ideas? Please help!

Thank you very much.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
If you only have a plain web application in a GlassFish server that tries to access a web service in some other container, then there should be no need for keystores and certificates.
Are you trying to apply some security to the communication to/from the web service?
In my SCDJWS study notes, I have examples of plain SSL and SSL with mutual authentication. If you haven't seen it already, do take a look at: http://faq.javaranch.com/content/Exam-Objectives-5.pdf
Best wishes!
 
Rafael Angarita
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ivan! Thank you for your reply!

Yes, I'm trying to use SSL with mutual authentication. I have been following your tutorial and everything worked perfectly fine when I had my web service and client both deployed in my local GlassFish instance.

Now, I deployed one of my web servicer to an Ubuntu machine and I'm getting that error.

I don't know what to do. There is not much documentation about it.


Thank you again.

 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Interesting problem, I will see if I have some time to set up a virtual machine and try it out myself. Can't promise anything, though.
Best wishes!
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!