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

ssl program using java 1.2 version

 
suresh varma
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing an SSL program in my project.

I use a normal java program for posting data to an url and get result from the url. I have used java.net.url api's to connect to the url and post the data. This works fine for protocol http and port 80 but on using https and port 443, i get errors and not able to proceed further.

Later i got the client and server certificates and the .pfx key, but i donot have complete idea how to use these in my program. I have done some googling and tried to solve it but this was not helpful.

Can you please suggest how do i proceed on this. I required the solution to be supported in java 1.2 version.

I could be greatful to get your support on solving my problem.
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, you posted your post in the wrong section.

Regarding your question, you need to import the public key of the server that you're trying to connect into your truststore.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic