<?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 Re: Error Keystores are invalid when upgrade from 4.1.1 to 5.2.4 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-keystores-are-invalid-when-upgrade-from-4-1-1-to-5-2-4/m-p/135563#M36438</link>
    <description>&lt;P&gt;If I add this configuration to the alfresco-global.properties file:&lt;/P&gt;&lt;PRE&gt;# encryption
solr.secureComms=https
# ssl encryption
encryption.ssl.keystore.location=${dir.keystore}/ssl.keystore
encryption.ssl.keystore.type=JCEKS
encryption.ssl.truststore.location=${dir.keystore}/ssl.truststore
encryption.ssl.truststore.type=JCEKS
encryption.ssl.keystore.keyMetaData.location=${dir.keystore}/ssl-keystore-passwords.properties
encryption.ssl.truststore.keyMetaData.location=${dir.keystore}/ssl-truststore-passwords.properties
# secret key keystore configuration
encryption.keystore.location=${dir.keystore}/keystore
encryption.keystore.keyMetaData.location=${dir.keystore}/keystore-passwords.properties
encryption.keystore.type=JCEKS&lt;/PRE&gt;&lt;P&gt;Now the keystore errors do not appear when starting alfresco pointing to the clean install data.&amp;nbsp;But the original error still appears when I point to the 4.1 datastore and database.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 15:43:08 GMT</pubDate>
    <dc:creator>Rafabono_23</dc:creator>
    <dc:date>2023-02-08T15:43:08Z</dc:date>
    <item>
      <title>Error Keystores are invalid when upgrade from 4.1.1 to 5.2.4</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-keystores-are-invalid-when-upgrade-from-4-1-1-to-5-2-4/m-p/135560#M36435</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to migrate an Alfresco installation from version 4.1.1 to 5.2.4 (and then to 7.1).&lt;BR /&gt;I have followed the steps outlined at &lt;A href="https://docs.alfresco.com/content-services/5.2/upgrade/#upgrading-alfresco-content-services" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/5.2/upgrade/#upgrading-alfresco-content-services&lt;/A&gt;. This is a one node installation.&lt;BR /&gt;I have done a clean install on a new server with version 5.2.4. After checking that it works correctly, I have configured alfresco-global.properties to point to the original database (from version 4.1.1) and to the original contentstore (from version 4.1.1), and I have deleted the index files so that they are generated again:&lt;BR /&gt;- /opt/alfresco-content-services/alf_data/solr4/index/workspace/SpacesStore/*&lt;BR /&gt;- /opt/alfresco-content-services/alf_data/solr4/index/archive/SpacesStore/*&lt;BR /&gt;- /opt/alfresco-content-services/alf_data/solr4/model/* /opt/alfresco-content-services/alf_data/solr4/model/*&lt;BR /&gt;- /opt/alfresco-content-services/alf_data/solr4/content/*&lt;/P&gt;&lt;P&gt;The original version (4.1.1) was configured with solr 1.4, and in version 5.2.4 I am starting it with solr 4.&lt;/P&gt;&lt;P&gt;When I boot, the problem it shows me in catalina.out is:&lt;/P&gt;&lt;PRE&gt;org.alfresco.error.AlfrescoRuntimeException: 01070024 Keystores are invalid
        at org.alfresco.enterprise.repo.authorization.encryption.AlfrescoContentKeyStoreImpl$1.execute(AlfrescoContentKeyStoreImpl.java:89)
        at org.alfresco.enterprise.repo.authorization.encryption.AlfrescoContentKeyStoreImpl$1.execute(AlfrescoContentKeyStoreImpl.java:79)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:333)
        at org.alfresco.enterprise.repo.authorization.encryption.AlfrescoContentKeyStoreImpl.onApplicationEvent(AlfrescoContentKeyStoreImpl.java:78)
        at org.alfresco.enterprise.repo.authorization.encryption.AlfrescoContentKeyStoreImpl.onApplicationEvent(AlfrescoContentKeyStoreImpl.java:41)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:214)
        at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:185)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:954)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5110)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1015)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:991)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:712)
        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:2002)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.alfresco.encryption.MissingKeyException: Key authorization is missing from keystore system://system/28b04a08-4862-443b-8966-285ed1b28133
        at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:902)
        at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:188)
        at org.alfresco.enterprise.repo.authorization.encryption.AlfrescoContentKeyStoreImpl.initiateAndValidate(AlfrescoContentKeyStoreImpl.java:118)
        at org.alfresco.enterprise.repo.authorization.encryption.AlfrescoContentKeyStoreImpl$1.execute(AlfrescoContentKeyStoreImpl.java:84)
        ... 27 more&lt;/PRE&gt;&lt;P&gt;I have tried putting the original keystore folder (from version 4.1.1) but it still crashes.&lt;BR /&gt;If I boot again but pointing to the initial database of the 5.4.2 installation with the keystore folder of version 4.1.1.1 it boots without problems.&lt;BR /&gt;What is the reason for this error?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 11:37:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-keystores-are-invalid-when-upgrade-from-4-1-1-to-5-2-4/m-p/135560#M36435</guid>
      <dc:creator>Rafabono_23</dc:creator>
      <dc:date>2023-02-07T11:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error Keystores are invalid when upgrade from 4.1.1 to 5.2.4</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-keystores-are-invalid-when-upgrade-from-4-1-1-to-5-2-4/m-p/135561#M36436</link>
      <description>&lt;P&gt;Take the keystore folder from 5.2.4. It must be in the alf_data folder by default (dir.keystore=${dir.root}/keystore). As I understand when you try to start upgrade, you point contentsotre to old 4.1.1 alf_data with old 4.1.1 keystore.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 09:25:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-keystores-are-invalid-when-upgrade-from-4-1-1-to-5-2-4/m-p/135561#M36436</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2023-02-08T09:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error Keystores are invalid when upgrade from 4.1.1 to 5.2.4</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-keystores-are-invalid-when-upgrade-from-4-1-1-to-5-2-4/m-p/135562#M36437</link>
      <description>&lt;P&gt;Hello, thank you for your reply.&lt;/P&gt;&lt;P&gt;I try to boot pointing to the version 4.1 contenstore and to the version 4.1 database. Regarding the keystore, I have tried with both, version 5.4.2 and version 4.1, and I always get the error:&lt;/P&gt;&lt;PRE&gt;org.alfresco.error.AlfrescoRuntimeException: 01080024 Keystores are invalid

...

Caused by: org.alfresco.encryption.MissingKeyException: Key authorization is missing from keystore system://system/28b04a08-4862-443b-8966-285ed1b28133&lt;/PRE&gt;&lt;P&gt;Something curious, if I add this configuration to alfresco-global.properties for the clean install of alfresco 5.4.2:&lt;/P&gt;&lt;PRE&gt;# encryption
solr.secureComms=https
# ssl encryption
encryption.ssl.keystore.location=${dir.keystore}/ssl.keystore
encryption.ssl.keystore.type=JCEKS
encryption.ssl.keystore.keyMetaData.location=
encryption.ssl.truststore.location=${dir.keystore}/ssl.truststore
encryption.ssl.truststore.type=JCEKS
encryption.ssl.truststore.keyMetaData.location=
# secret key keystore configuration
encryption.keystore.location=${dir.keystore}/keystore
encryption.keystore.keyMetaData.location=
encryption.keystore.type=JCEKS&lt;/PRE&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;PRE&gt;org.alfresco.error.AlfrescoRuntimeException: 01080000 Keystores are invalid
...
Caused by: org.alfresco.encryption.MissingKeyException: Key metadata is missing from keystore /opt/alfresco-content-services/alf_data/keystore/keystore&lt;/PRE&gt;&lt;P&gt;And I have this configuration as well:&lt;/P&gt;&lt;PRE&gt;dir.root=/opt/alfresco-content-services/alf_data
dir.keystore=${dir.root}/keystore&lt;/PRE&gt;&lt;P&gt;It's as if it doesn't really take the files I have in:&amp;nbsp;/opt/alfresco-content-services/alf_data/keystore&lt;/P&gt;&lt;PRE&gt;browser.p12
CreateSSLKeystores.txt
generate_keystores.bat
generate_keystores.sh
keystore
keystore-passwords.properties
readme.txt
ssl.keystore
ssl-keystore-passwords.properties
ssl.truststore
ssl-truststore-passwords.properties&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:04:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-keystores-are-invalid-when-upgrade-from-4-1-1-to-5-2-4/m-p/135562#M36437</guid>
      <dc:creator>Rafabono_23</dc:creator>
      <dc:date>2023-02-08T13:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error Keystores are invalid when upgrade from 4.1.1 to 5.2.4</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-keystores-are-invalid-when-upgrade-from-4-1-1-to-5-2-4/m-p/135563#M36438</link>
      <description>&lt;P&gt;If I add this configuration to the alfresco-global.properties file:&lt;/P&gt;&lt;PRE&gt;# encryption
solr.secureComms=https
# ssl encryption
encryption.ssl.keystore.location=${dir.keystore}/ssl.keystore
encryption.ssl.keystore.type=JCEKS
encryption.ssl.truststore.location=${dir.keystore}/ssl.truststore
encryption.ssl.truststore.type=JCEKS
encryption.ssl.keystore.keyMetaData.location=${dir.keystore}/ssl-keystore-passwords.properties
encryption.ssl.truststore.keyMetaData.location=${dir.keystore}/ssl-truststore-passwords.properties
# secret key keystore configuration
encryption.keystore.location=${dir.keystore}/keystore
encryption.keystore.keyMetaData.location=${dir.keystore}/keystore-passwords.properties
encryption.keystore.type=JCEKS&lt;/PRE&gt;&lt;P&gt;Now the keystore errors do not appear when starting alfresco pointing to the clean install data.&amp;nbsp;But the original error still appears when I point to the 4.1 datastore and database.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 15:43:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-keystores-are-invalid-when-upgrade-from-4-1-1-to-5-2-4/m-p/135563#M36438</guid>
      <dc:creator>Rafabono_23</dc:creator>
      <dc:date>2023-02-08T15:43:08Z</dc:date>
    </item>
  </channel>
</rss>

