Thursday 4 July 2019

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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...