There is an old piece of code (not under my control) which initializes as sslContext.init(null, ...) - key manager is hard coded to be null. Later, the code will create a ssl server socket.
I am trying to provide a jks key store file to use certificate from. If I would be able to modify that code and feed the key manager then the code would work (I tried to copy over it).
My question is: How can I keep using that code, feeding null, and still use jks file of mine?
I have tried to set javax.net.ssl.keyStore, but that option is ignored. Javadoc says that in case key manager is null, the system will find appropriate one - what does that mean?