Saturday, 4 March 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

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...