Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Adding a certificate to Trusted Certificates

Posted on 2007-11-20
6
Medium Priority
?
6,217 Views
Last Modified: 2010-04-13
I want to push out a Java certificate for an application to all our workstations.  It needs to be added to trusted certificates.  I tried using keytool.exe, but it seems no matter what I do, it always asks for a password and it always prompts for "do you want to trust this certificate?"  Also, after I import the certificate using keytool, it seems that it imported, but it never ends up in Trusted Certificates and it doesn't allow the application to work (a window pops up saying that the digital signature has been verified and do you want to run the app.).  The command I am using is...

keytool -import -trustcacerts -file c:\mycertfile.cer

I'm not locked into using keytool, I am open to whatever way will work.

Is there an automated way to add this certificate to Java Trusted Certificates?
0
Comment
Question by:bpl5000
6 Comments
 
LVL 5

Author Comment

by:bpl5000
ID: 20320835
Maybe I should be more specific.  If you go into Control Panel and click on Java, the Java Control Panel will come up.  In the Java Control Panel, click on the Security tab and click on the Certificate button.  Here you will see a list of trusted sites.  I want to know if there is an automated way to import a certificate into Trusted Certificates.  When a certificate is entered, the info is kept in this file...

"C:\Documents and Settings\<UserAccount>\Application Data\Sun\Java\Deployment\security\trusted.certs"

This is not a text file so I can't append to it.  I could overwrite it with my file, but then the workstation would lose other entries that might exist.  Does anyone have any idea how to import a certificate into Java?
0
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 20323183
> Does anyone have any idea how to import a certificate into Java?

using keytool, as you already are.
0
Independent Software Vendors: 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 5

Author Comment

by:bpl5000
ID: 20323887
objects, can you give me an example?  When I use keytool, it seems to import it successfully, but then it still doesn't allow the application to work and I cannot see it in the Trusted Certificates in the Java control panel.  If I import it from the Java control panel, then the application works fine.  Also, can I fully automate the process using keytool (not have to answer prompts)? The -noprompts switch doesn't seem to work for me.   If so, can you show me an example?
Thanks!
0
 
LVL 4

Expert Comment

by:TheMajestic
ID: 20325688
hi,
 hope this will help u a lot.

cwiki.apache.org/GMOxDOC12/certificate-properties-file-realm.html
help.globalscape.com/help/secureserver2/Importing_a_certificate_int.htm
www.lbl.gov/imapssl/add-trusted-certificate-authority.html
www.akadia.com/services/ssh_test_certificate.html
help.globalscape.com/help/secureserver2/Creating_Certificates.htm
0
 
LVL 3

Expert Comment

by:Orbsol
ID: 24978413
I have exactly the same problem as described above. Can bpl5000 explain how he/she achieved this as the "accepted solution" does not cover it.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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 how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses
Course of the Month21 days, 3 hours left to enroll

810 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