[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to relaod the updated cacerts file at runtime?

Posted on 2004-09-21
5
Medium Priority
?
867 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
[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
  • 2
5 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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…
Suggested Courses

656 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