• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

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

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
optimal
Asked:
optimal
1 Solution
 
bkfirebirdCommented:
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

Industry Leaders: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now