Solved

Creating a key and trust store with JSSE in Java (replicating keytool functionality in code)

Posted on 2004-04-14
1
295 Views
Last Modified: 2012-06-27
Hi all,

I would like to make it easy for my users to add certificates to a trust store.
They should be able to use a simple UI to upload a certificate and click a button to import it.

Is it possible to use sun's API to import certificate into a trust store and how?

Thanks,
Guy.
0
Comment
Question by:optimal
1 Comment
 
LVL 4

Accepted Solution

by:
bkfirebird earned 500 total points
ID: 10827375
you can use the Keystore class to add certificates to a exisiting keystore ...

http://java.sun.com/j2se/1.4.2/docs/api/java/security/KeyStore.html
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet doXXX methods 3 61
Apps blocked by Java 9 88
servlet example issue 6 46
expectj telnet failing 5 45
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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
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 …

790 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