You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/11/06 20:56:00 UTC
[jira] [Commented] (NIFI-6830) NiFI fails to start when
keystorePassword and keyPassword are different
[ https://issues.apache.org/jira/browse/NIFI-6830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16968705#comment-16968705 ]
ASF subversion and git services commented on NIFI-6830:
-------------------------------------------------------
Commit 36bdb474c30c8a88530cee1d220e9d3c1e0dc888 in nifi's branch refs/heads/master from mtien
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=36bdb47 ]
NIFI-6830 Added regression test. Added failing unit test. Added Test Resources.
Implemented KeyPassword detection in the SSLContextFactory.
Resolved Java 8/11 unit test issue.
Fixed unit test wildcard imports and added Javadoc to test helper methods.
This closes #3873.
Signed-off-by: Andy LoPresto <al...@apache.org>
> NiFI fails to start when keystorePassword and keyPassword are different
> -----------------------------------------------------------------------
>
> Key: NIFI-6830
> URL: https://issues.apache.org/jira/browse/NIFI-6830
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.10.0
> Reporter: Bryan Bende
> Assignee: M Tien
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {code:java}
> Caused by: java.security.UnrecoverableKeyException: Cannot recover key
> at sun.security.provider.KeyProtector.recover(KeyProtector.java:328)
> at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:146)
> at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:56)
> at sun.security.provider.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:96)
> at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(JavaKeyStore.java:70)
> at java.security.KeyStore.getKey(KeyStore.java:1023)
> at sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:133)
> at sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:70)
> at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:256)
> at org.apache.nifi.io.socket.SSLContextFactory.<init>(SSLContextFactory.java:70)
> at org.apache.nifi.cluster.protocol.spring.SocketConfigurationFactoryBean.getObject(SocketConfigurationFactoryBean.java:45)
> at org.apache.nifi.cluster.protocol.spring.SocketConfigurationFactoryBean.getObject(SocketConfigurationFactoryBean.java:30)
> at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)