ignite icon indicating copy to clipboard operation
ignite copied to clipboard

Fix 'ssl.KeyManagerFactory.algorithm' security property retrieving

Open stolyarchukav opened this issue 2 years ago • 0 comments

Fix 'ssl.KeyManagerFactory.algorithm' security property retrieving

Issue

SslContextFactory has DFLT_KEY_ALGORITHM constant which by default tries to retrieve 'ssl.KeyManagerFactory.algorithm' value from the system property. But, according to Java specification (https://docs.oracle.com/en/java/javase/17/docs/api/java.base/javax/net/ssl/KeyManagerFactory.html, https://docs.oracle.com/javase/8/docs/api/javax/net/ssl/KeyManagerFactory.html), this is a security property. It can be specified in java.security file, therefore in order to get its value in code, Security.getProperty(..) method should be used.

Fix

The proposed fix keeps backward compatibility with the scenarios when this property for some reason specified as a system property

stolyarchukav avatar Nov 29 '23 12:11 stolyarchukav