Aldrin Piri created NIFI-1163:
---------------------------------
Summary: GetHTTP throws an NPE if a context service is used with
only a truststore and no keystore
Key: NIFI-1163
URL: https://issues.apache.org/jira/browse/NIFI-1163
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Affects Versions: 0.3.0
Reporter: Aldrin Piri
Assignee: Aldrin Piri
Consider a one-way SSL connection to an HTTPS endpoint. We might want to
specify a truststore to talk with that endpoint but not a keystore.
The problem stems from the following method:
{code}
final SSLContext sslContext =
SSLContexts.custom().loadTrustMaterial(truststore, new
TrustSelfSignedStrategy()).loadKeyMaterial(null,
service.getKeyStorePassword().toCharArray()).build();
{code}
In this case there are no keystore properties causing this process to fail.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)