Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2.9
-
None
-
Spring Framework 3.x
-
Novice
Description
According to documentation when 'useHttpsURLConnectionDefaultSslSocketFactory' is true, the 'jsseProvider', 'secureSocketProtocol', 'trustManagers', 'keyManagers', 'secureRandom', 'cipherSuites' and 'cipherSuitesFilter' configuration parameters are ignored.
But, invalid 'trustManagers' (missing truststore file for example) leads to error.
While this parameter has been added to easily disable SSL verification while being on testing/development phases.
As far as, a valid 'truststore' file need to be provided, the main objective (easy setup) is not reach.
Expected behavior: when 'useHttpsURLConnectionDefaultSslSocketFactory' is true, the 'jsseProvider', 'secureSocketProtocol', 'trustManagers', 'keyManagers', 'secureRandom', 'cipherSuites' and 'cipherSuitesFilter' configuration parameters are completely ignored (invalid or incomplete configuration).
I suggest to fix it in 'TLSClientParametersConfig' by quickly return out of the function 'createTLSClientParametersFromType' when "params.isUseHttpsURLConnectionDefaultSslSocketFactory()" is true.