Sunday, 3 September 2017

java - How to pass SSL keystore password?

I am writing a little web framework and I want to enable SSL encryption with a SSL key which will be supplied by the user.




This might seem overly cautious, but is it common to pass the password for the keystore file as a String passed in the parameters of a method?



This is what I had in mind:



public void enableSSL(String keystorePath, String keystorePassword) {
// ... do things
}

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...