<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Secured NiFi with empty keystore password does not start in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Secured-NiFi-with-empty-keystore-password-does-not-start/m-p/230897#M192744</link>
    <description>&lt;P&gt;I have a cluster with 7 NiFi nodes. After a node crash, on restart, NiFi could not find the file /usr/hdf/current/nifi/conf/keystore.jks and truststore.jks&lt;/P&gt;&lt;P&gt;I have re-created the files with&lt;/P&gt;&lt;PRE&gt;tls-toolkit.sh client -c tp-hostname.domain.com -t passwordPassword -p 10443&lt;/PRE&gt;&lt;P&gt; In Ambari config the keystore and truststore pasword are empty.&lt;/P&gt;&lt;P&gt;When I start the NiFi services Ihave:&lt;/P&gt;&lt;PRE&gt;Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'protocolSocketConfiguration': FactoryBean threw exception on object creation; nested exception is java.io.IOException: Keystore was tampered with, or password was incorrect
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1585)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
	... 78 common frames omitted
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
	at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
	at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
	at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
	at java.security.KeyStore.load(KeyStore.java:1445)
	at org.apache.nifi.io.socket.SSLContextFactory.&amp;lt;init&amp;gt;(SSLContextFactory.java:65)
	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)
	... 83 common frames omitted
Caused by: java.security.UnrecoverableKeyException: Password verification failed
	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)
	... 91 common frames omitted


&lt;/PRE&gt;&lt;P&gt;In nifi.properties  I have:&lt;/P&gt;&lt;PRE&gt;nifi.security.keyPasswd=
nifi.security.keystore=/usr/hdf/current/nifi/conf/keystore.jks
nifi.security.keystorePasswd=
nifi.security.keystoreType=jks
nifi.security.needClientAuth=False
nifi.security.ocsp.responder.certificate=
nifi.security.ocsp.responder.url=
nifi.security.truststore=/usr/hdf/current/nifi/conf/truststore.jks
nifi.security.truststorePasswd=
nifi.security.truststoreType=jks
nifi.security.user.authorizer=ranger-provider
nifi.security.user.login.identity.provider=
nifi.sensitive.props.additional.keys=
nifi.sensitive.props.algorithm=PBEWITHMD5AND256BITAES-CBC-OPENSSL
nifi.sensitive.props.key=sdlkjdslkjsdlkjdjjd||xyGZZ+R3FO04BxcUHSL5U6+OGqtQQevXbFfecQ
nifi.sensitive.props.key.protected=aes/gcm/256
nifi.sensitive.props.provider=BC&lt;/PRE&gt;&lt;P&gt;On other NiFi nodes I have an encrypted password in nifi.properties, but the truststore and the keystore has an empty string as a password.&lt;/P&gt;&lt;P&gt;Do you have any idea for this issue?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sat, 23 Dec 2017 00:02:18 GMT</pubDate>
    <dc:creator>isoardi</dc:creator>
    <dc:date>2017-12-23T00:02:18Z</dc:date>
    <item>
      <title>Secured NiFi with empty keystore password does not start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Secured-NiFi-with-empty-keystore-password-does-not-start/m-p/230897#M192744</link>
      <description>&lt;P&gt;I have a cluster with 7 NiFi nodes. After a node crash, on restart, NiFi could not find the file /usr/hdf/current/nifi/conf/keystore.jks and truststore.jks&lt;/P&gt;&lt;P&gt;I have re-created the files with&lt;/P&gt;&lt;PRE&gt;tls-toolkit.sh client -c tp-hostname.domain.com -t passwordPassword -p 10443&lt;/PRE&gt;&lt;P&gt; In Ambari config the keystore and truststore pasword are empty.&lt;/P&gt;&lt;P&gt;When I start the NiFi services Ihave:&lt;/P&gt;&lt;PRE&gt;Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'protocolSocketConfiguration': FactoryBean threw exception on object creation; nested exception is java.io.IOException: Keystore was tampered with, or password was incorrect
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1585)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:317)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
	... 78 common frames omitted
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
	at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
	at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
	at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
	at java.security.KeyStore.load(KeyStore.java:1445)
	at org.apache.nifi.io.socket.SSLContextFactory.&amp;lt;init&amp;gt;(SSLContextFactory.java:65)
	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)
	... 83 common frames omitted
Caused by: java.security.UnrecoverableKeyException: Password verification failed
	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:778)
	... 91 common frames omitted


&lt;/PRE&gt;&lt;P&gt;In nifi.properties  I have:&lt;/P&gt;&lt;PRE&gt;nifi.security.keyPasswd=
nifi.security.keystore=/usr/hdf/current/nifi/conf/keystore.jks
nifi.security.keystorePasswd=
nifi.security.keystoreType=jks
nifi.security.needClientAuth=False
nifi.security.ocsp.responder.certificate=
nifi.security.ocsp.responder.url=
nifi.security.truststore=/usr/hdf/current/nifi/conf/truststore.jks
nifi.security.truststorePasswd=
nifi.security.truststoreType=jks
nifi.security.user.authorizer=ranger-provider
nifi.security.user.login.identity.provider=
nifi.sensitive.props.additional.keys=
nifi.sensitive.props.algorithm=PBEWITHMD5AND256BITAES-CBC-OPENSSL
nifi.sensitive.props.key=sdlkjdslkjsdlkjdjjd||xyGZZ+R3FO04BxcUHSL5U6+OGqtQQevXbFfecQ
nifi.sensitive.props.key.protected=aes/gcm/256
nifi.sensitive.props.provider=BC&lt;/PRE&gt;&lt;P&gt;On other NiFi nodes I have an encrypted password in nifi.properties, but the truststore and the keystore has an empty string as a password.&lt;/P&gt;&lt;P&gt;Do you have any idea for this issue?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2017 00:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Secured-NiFi-with-empty-keystore-password-does-not-start/m-p/230897#M192744</guid>
      <dc:creator>isoardi</dc:creator>
      <dc:date>2017-12-23T00:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Secured NiFi with empty keystore password does not start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Secured-NiFi-with-empty-keystore-password-does-not-start/m-p/230898#M192745</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1186/isoardi.html" nodeid="1186"&gt;@Davide Isoardi&lt;/A&gt;&lt;P&gt;Are you still working on this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 02:51:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Secured-NiFi-with-empty-keystore-password-does-not-start/m-p/230898#M192745</guid>
      <dc:creator>Wynner</dc:creator>
      <dc:date>2018-05-08T02:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Secured NiFi with empty keystore password does not start</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Secured-NiFi-with-empty-keystore-password-does-not-start/m-p/230899#M192746</link>
      <description>&lt;P&gt;I got the same issue!&lt;/P&gt;&lt;P&gt;At the end, I deactivated and activated back SSL, so it generated new certificates for Nifi Cluster.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 02:15:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Secured-NiFi-with-empty-keystore-password-does-not-start/m-p/230899#M192746</guid>
      <dc:creator>minaa_khalili</dc:creator>
      <dc:date>2018-09-07T02:15:28Z</dc:date>
    </item>
  </channel>
</rss>

