• 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

Java Client invoking Secured Servlet in different Machine

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

I am new to this Java security concepts, I do not even know the terminology like truststore, keystore, certificates, public key, private key, alias name, which one need to use where and etc.,

But i know my requirement exactly,

I got a servlet url from my client which is running under SSL enabled server. But they do not share any information about it.

Should I need to get some more information from them or this is enough to go further?

I tried to get the certificate from the url. I invoked the servlet from web browser authenticating using user name and password. Actually the servlet will print as xml format.

My requirement is very clear that, I need to get the xml stream and display it my java client program

For the reason, I have exported the certificate from the web browser itself as Base 64 format - cer.

So i am stuck here, how I can move further,

Is the certificate valid one which I exported to communicate to server?

If how do i write a program to use that?

This issue is killing me. So please help me out, giving right direction to succeed in step by step with sample program. That would be great.

Thanks in Advance,
Saravanan
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't quite understand what you're struggling with. You have a Java client code that accesses an SSL URL. Are you interested in the server certificate, or the contents of the URL? Your mentioning an XML stream suggests the latter, since certificates don't come in XML format. Do you need the certificate for some reason?
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic