?
Solved

How to relaod the updated cacerts file at runtime?

Posted on 2004-09-21
5
Medium Priority
?
869 Views
Last Modified: 2007-12-19
Hi,
 I need to add certificates to the keystore / truststore (i.e. cacerts file) at runtime.         
 As of now I know that keystore / truststore once read is cached and the application doesn't consider the newly added certificates.
 How do I get it to reload the same keystore after the application has added new certificate to the cacerts file?  
 Is that possible ?
       
 Thanks,
 Nimai
0
Comment
Question by:nimaig
  • 2
3 Comments
 
LVL 9

Author Comment

by:nimaig
ID: 12120139
Hi,
 The link you have specified talks of adding a certificate. My requirement is different. I would like to reload the same keystore after the application has added new certificate to the cacerts file?


Thanks,
Nimai
0
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 12120169
WHy can't you just create a new KeyStore instance and load that with your key store stream.
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!

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month16 days, 2 hours left to enroll

850 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