Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.12.1
Description
SslContextFactory in nifi-security-utils and SSLContextService in nifi-ssl-context-service-api include methods for creating an SSLContext based on a ClientAuth parameter. The SslContextFactory.initializeSSLContext() method calls setNeedClientAuth or setWantClientAuth on the default SSLParameters object according to the ClientAuth value provided.
The default SSLParameters object returned from SSLContext.getDefaultSSLParameters() is a new copy for each invocation, which means that the value of ClientAuth passed to SslContextFactory does not influence whether client certificates will be required or requested. For this reason, the methods on SslContetFactory and SSLContextService that accept a ClientAuth parameter should be deprecated and references to these methods should be refactored.
Attachments
Issue Links
- relates to
-
NIFI-8121 ListenHTTP should support inferred Client Authentication
- Resolved
- links to