?
Solved

Adding a certificate to Trusted Certificates

Posted on 2007-11-20
6
Medium Priority
?
6,208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
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

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!

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

752 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