Solved

How to relaod the updated cacerts file at runtime?

Posted on 2004-09-21
5
854 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
5 Comments
 
LVL 92

Expert Comment

by:objects
Comment Utility
0
 
LVL 9

Author Comment

by:nimaig
Comment Utility
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
Comment Utility
WHy can't you just create a new KeyStore instance and load that with your key store stream.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now