Giter Site home page Giter Site logo

alfresco-transform-ssl's Introduction

alfresco-transform-ssl

This project provides a sample Docker Compose template to deploy ACS 7.2 with Local Transformer using SSL protocol to communicate with Repository.

By default, this communication happens in plain HTTP.

Creating keystores

This configuration requires a private certificate in Transform Service (transform-core-aio) and the public part of this certificate in Alfresco Repository (alfresco) JRE truststore.

Sample certificates have been generated for this purpose in keystores folder:

  • transform.p12 is the private certificate to be used by transform-core-aio
  • transform.cert is the public certificate to be imported in alfresco (this certificate is copied to alfresco folder to build the customized Dockerfile)

Sample shell script keystores/run.sh is provided to create this certificates from scratch. Remember to remove keystores/transform.p12, keystores/transform.cert and alfresco/transform.cert before executing this script.

Configuration applied to default ACS Docker Compose

Exposing transform-core-aio using TLS protocol is achieved by configuring the internal Spring Boot Tomcat server with the private certificate (that is mounted using a local volume)

transform-core-aio:
    image: alfresco/alfresco-transform-core-aio:2.5.7
    environment:
        JAVA_OPTS: '
          -Dserver.ssl.enabled=true
          -Dserver.ssl.protocol=TLS
          -Dserver.ssl.enabled-protocols=TLSv1.3
          -Dserver.ssl.key-store-type=pkcs12
          -Dserver.ssl.key-store=file:///transform.p12
          -Dserver.ssl.key-store-password=transform
          -Dserver.ssl.key-alias=transform
          -Dserver.ssl.key-password=transform
        '
    volumes:
        - ./keystores/transform.p12:/transform.p12:ro

Adding the public certificate to alfresco JRE truststore is achieved by using a customized Dockerfile

# Add trusted certificate (generated by run.sh script)
COPY transform.cert $JRE_HOME/lib/security
RUN cd $JRE_HOME/lib/security \
    && keytool -keystore cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias transform -file transform.cert

Additionally, SSL endpoint is configured in alfresco environment variable.

alfresco:
  build:
    context: ./alfresco
  environment:
    JAVA_OPTS: "
      -DlocalTransform.core-aio.url=https://transform-core-aio:8090/
      "

Running

This is a regular Docker Compose, just use the regular command to run ACS.

$ docker compose up

Services available

Verification step

Upload any document, for instance a Word Document, to repository using Share web application and verify you can access to the preview in the details of the document.

alfresco-transform-ssl's People

Contributors

aborroy avatar

Stargazers

Fran Rego avatar

Watchers

 avatar

Forkers

sa-jackmax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.