<?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>topic Yet another invalid keystore question in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/yet-another-invalid-keystore-question/m-p/122146#M33493</link>
    <description>&lt;P&gt;I am using docker-compose so all the answers about expanding the war wont work for me.&amp;nbsp; And I don't understand why this is happening with the docker images.&amp;nbsp; I am useing a custom image with almost nothing changed.&amp;nbsp; the Docker file looks like this:&lt;/P&gt;&lt;PRE&gt;FROM alfresco/alfresco-content-repository-community

ARG TOMCAT_DIR=/usr/local/tomcat

USER root

# Add services configuration to alfresco-global.properties
RUN echo -e '\n\
dir.root=/usr/local/tomcat/alf_data\n\
alfresco.host=localhost\n\
alfresco.port=8080\n\
alfresco.protocol=http\n\
db.driver=com.mysql.cj.jdbc.Driver\n\
db.url=jdbc:mysql://192.168.0.11:3366/alfresco\n\
db.host=localhost\n\
db.port=3366\n\
db.name=alfresco\n\
db.user=alfresco\n\
db.password=alfresco\n\
\n\
share.host=localhost\n\
share.port=8080\n\
share.protocol=http\n\
\n\
ftp.enabled=true\n\
ftp.port=2121\n\
\n\
' &amp;gt;&amp;gt; /usr/local/tomcat/shared/classes/alfresco-global.properties

RUN mkdir -p $TOMCAT_DIR/amps
RUN mkdir -p $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib

COPY jars/*.jar $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib/
COPY amps/*.amp $TOMCAT_DIR/amps/

RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install $TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force&lt;/PRE&gt;&lt;P&gt;but the stack trace is weird too:&lt;/P&gt;&lt;PRE&gt;alfresco_1               | Caused by: org.alfresco.error.AlfrescoRuntimeException: 01210003 Failed to create key: metadata
alfresco_1               |  in key store: 
alfresco_1               |    Location: classpath:alfresco/keystore/keystore
alfresco_1               |    Provider: null
alfresco_1               |    Type:     pkcs12
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.createKey(AlfrescoKeyStoreImpl.java:664)
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:915)
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:188)
alfresco_1               | 	at org.alfresco.encryption.KeyStoreChecker.validateKeyStores(KeyStoreChecker.java:49)
alfresco_1               | 	at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:73)
alfresco_1               | 	... 33 more
alfresco_1               | Caused by: org.alfresco.error.AlfrescoRuntimeException: 01210002 Unable to get secret key: no key information is provided
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.getSecretKey(AlfrescoKeyStoreImpl.java:775)
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.createKey(AlfrescoKeyStoreImpl.java:642)
alfresco_1               | 	... 37 more&lt;/PRE&gt;&lt;P&gt;that classpath looks wrong to me. And yes, I did a complete new database and cleared the alf-data directory.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Sun, 21 Feb 2021 04:38:47 GMT</pubDate>
    <dc:creator>mangar</dc:creator>
    <dc:date>2021-02-21T04:38:47Z</dc:date>
    <item>
      <title>Yet another invalid keystore question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/yet-another-invalid-keystore-question/m-p/122146#M33493</link>
      <description>&lt;P&gt;I am using docker-compose so all the answers about expanding the war wont work for me.&amp;nbsp; And I don't understand why this is happening with the docker images.&amp;nbsp; I am useing a custom image with almost nothing changed.&amp;nbsp; the Docker file looks like this:&lt;/P&gt;&lt;PRE&gt;FROM alfresco/alfresco-content-repository-community

ARG TOMCAT_DIR=/usr/local/tomcat

USER root

# Add services configuration to alfresco-global.properties
RUN echo -e '\n\
dir.root=/usr/local/tomcat/alf_data\n\
alfresco.host=localhost\n\
alfresco.port=8080\n\
alfresco.protocol=http\n\
db.driver=com.mysql.cj.jdbc.Driver\n\
db.url=jdbc:mysql://192.168.0.11:3366/alfresco\n\
db.host=localhost\n\
db.port=3366\n\
db.name=alfresco\n\
db.user=alfresco\n\
db.password=alfresco\n\
\n\
share.host=localhost\n\
share.port=8080\n\
share.protocol=http\n\
\n\
ftp.enabled=true\n\
ftp.port=2121\n\
\n\
' &amp;gt;&amp;gt; /usr/local/tomcat/shared/classes/alfresco-global.properties

RUN mkdir -p $TOMCAT_DIR/amps
RUN mkdir -p $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib

COPY jars/*.jar $TOMCAT_DIR/webapps/alfresco/WEB-INF/lib/
COPY amps/*.amp $TOMCAT_DIR/amps/

RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install $TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force&lt;/PRE&gt;&lt;P&gt;but the stack trace is weird too:&lt;/P&gt;&lt;PRE&gt;alfresco_1               | Caused by: org.alfresco.error.AlfrescoRuntimeException: 01210003 Failed to create key: metadata
alfresco_1               |  in key store: 
alfresco_1               |    Location: classpath:alfresco/keystore/keystore
alfresco_1               |    Provider: null
alfresco_1               |    Type:     pkcs12
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.createKey(AlfrescoKeyStoreImpl.java:664)
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:915)
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:188)
alfresco_1               | 	at org.alfresco.encryption.KeyStoreChecker.validateKeyStores(KeyStoreChecker.java:49)
alfresco_1               | 	at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:73)
alfresco_1               | 	... 33 more
alfresco_1               | Caused by: org.alfresco.error.AlfrescoRuntimeException: 01210002 Unable to get secret key: no key information is provided
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.getSecretKey(AlfrescoKeyStoreImpl.java:775)
alfresco_1               | 	at org.alfresco.encryption.AlfrescoKeyStoreImpl.createKey(AlfrescoKeyStoreImpl.java:642)
alfresco_1               | 	... 37 more&lt;/PRE&gt;&lt;P&gt;that classpath looks wrong to me. And yes, I did a complete new database and cleared the alf-data directory.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 04:38:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/yet-another-invalid-keystore-question/m-p/122146#M33493</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2021-02-21T04:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Yet another invalid keystore question</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/yet-another-invalid-keystore-question/m-p/122147#M33494</link>
      <description>&lt;P&gt;Use 6.2.0-ga Docker Image instead of latest for alfresco-content-repository-community&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 08:41:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/yet-another-invalid-keystore-question/m-p/122147#M33494</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-02-22T08:41:09Z</dc:date>
    </item>
  </channel>
</rss>

