Solved

How to relaod the updated cacerts file at runtime?

Posted on 2004-09-21
5
858 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 92

Expert Comment

by:objects
ID: 12118082
0
 
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 500 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 59
Running JavaFX on JDeveloper 12C 1 78
Glassfish admin console not working 1 59
Need Help! Getting a syntax error and don't understand why 3 40
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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…

733 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