Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SSL Clarification

 
Rafael Angarita
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.
 
Ivan Krizsan
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic