Added Keystore information

This commit is contained in:
Andrea Ligios
2021-02-12 18:57:36 +01:00
parent ea44c0b983
commit 80106f2d31

View File

@@ -41,6 +41,28 @@ You'll need to update the following settings in the `pom.xml` file:
<docker.acs.image>quay.io/alfresco/alfresco-content-repository</docker.acs.image> <docker.acs.image>quay.io/alfresco/alfresco-content-repository</docker.acs.image>
``` ```
In case the desired Platform version is 6.x, you'll also need to deal with the Keystore settings, by either:
* Removing the keystore settings:
```
<keystore.settings></keystore.settings>
```
or
* Adding the Keystore creation to the existing Dockerfile:
```
#Add Keystore
ARG CERT_DNAME="CN=Alfresco Repository, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB"
ARG CERT_VALIDITY=36525
ARG KEYSTORE_PASSWORD=mp6yc0UD9e
ARG KEYSTORE_METADATA_PASSWORD=oKIWzVdEdA
RUN mkdir -p $TOMCAT_DIR/shared/classes/alfresco/extension/keystore
RUN keytool -genseckey -dname "$CERT_DNAME" -validity ${CERT_VALIDITY} -alias metadata -keypass ${KEYSTORE_METADATA_PASSWORD} -keyalg AES -keysize 256 -keystore ${TOMCAT_DIR}/shared/classes/alfresco/extension/keystore/keystore -storetype JCEKS -storepass ${KEYSTORE_PASSWORD}
```
Changing these parameters instructs the project to use the proper maven dependencies and Docker images. Changing these parameters instructs the project to use the proper maven dependencies and Docker images.
Depending on the needs of your project, it will probably be necessary to change the `org.alfresco:alfresco-remote-api` dependency to Depending on the needs of your project, it will probably be necessary to change the `org.alfresco:alfresco-remote-api` dependency to