File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Mock Exam Errata and the fly likes ssl program using  java 1.2 version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "ssl program using  java 1.2 version" Watch "ssl program using  java 1.2 version" New topic

ssl program using java 1.2 version

suresh varma

Joined: Aug 27, 2007
Posts: 2
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 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

Joined: Sep 11, 2006
Posts: 959

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.

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
I agree. Here's the link:
subject: ssl program using java 1.2 version
It's not a secret anymore!