Solved

Adding a certificate to Trusted Certificates

Posted on 2007-11-20
6
6,203 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 500 total points
ID: 20323183
> Does anyone have any idea how to import a certificate into Java?

using keytool, as you already are.
0
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
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…

695 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