[
https://issues.apache.org/jira/browse/NIFI-6830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17012040#comment-17012040
]
ASF subversion and git services commented on NIFI-6830:
-------------------------------------------------------
Commit a6f0498cf9d137f064959535f15f35564a820243 in nifi's branch
refs/heads/master from mtien
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=a6f0498 ]
NIFI-6830 Change code to allow empty KeyPassword.
Add unit test verifying empty keyPassword.
This closes #3963.
Signed-off-by: Kevin Doran <[email protected]>
> 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
> Fix For: 1.11.0
>
> Time Spent: 1h 20m
> 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)