Solved

Adding a certificate to Trusted Certificates

Posted on 2007-11-20
6
6,178 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 23

Expert Comment

by:rama_krishna580
Comment Utility
0
 
LVL 5

Author Comment

by:bpl5000
Comment Utility
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 500 total points
Comment Utility
> Does anyone have any idea how to import a certificate into Java?

using keytool, as you already are.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 5

Author Comment

by:bpl5000
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scoreUp challenge 14 47
word0 challenge 3 55
java. non-English characters encoding problem. intellij idea 3 40
Python Assistance 7 31
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now