Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Using a server certificate in a client

Posted on 2006-06-06
9
Medium Priority
?
212 Views
Last Modified: 2010-03-31

Hi experts,

I'm trying to connect to a server over SSL but have no server or CA cert for my client to authenicate. Is it possible to use a certifcation from the actually web site (using export cert option in the IE6 ("internet options", "content", "certificates", "export") after doing the "install certificate"  from clicking on the little padlock of a site with SSL) and have my client verify the connection from that?

Not sure if this makes sense, any questions just let me know!!

Thanks,
Suzy
0
Comment
Question by:fyness
  • 2
  • 2
  • 2
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 16841079
You need to import the certificate into Java or disable verification:

http://javaalmanac.com/egs/javax.net.ssl/TrustAll.html
0
 

Author Comment

by:fyness
ID: 16841092

How do i import into Java? Do i need to save the cert as a type, e.g. pem, pk12?

I'm making a client connection that needs to be secure so disabling verification isn't an option.

Thanks,
Suzy
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 16841182
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 30

Expert Comment

by:Mayank S
ID: 16841301
You need to download the certificate and add it to the default trust-store, which is located at %JAVA_HOME%\jre\lib\security\cacerts
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 500 total points
ID: 16841304
You can also specify a different trust-store explicitly:

http://www.javaalmanac.com/egs/javax.net.ssl/Client.html
0
 

Author Comment

by:fyness
ID: 16841356

Great. do it matter what format the cert is saved as???

Thanks,
Suzy
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month11 days, 6 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question