Installing or updating CAST Imaging with certificate-based database authentication

Install or update CAST Imaging when your PostgreSQL instances are already configured with certificate-based authentication


Overview

This section of documentation provides instructions for situations where you need to either install CAST Imaging from scratch or perform an in-place update to a new release and your PostgreSQL instance(s) are already configured with certificate-based authentication with these modes:

  • require
  • verify-full
  • verify-ca

Scenarios and actions are provided below.

Microsoft Windows

Before starting the installation or running an update to a new release you should ensure that for the PostgreSQL instance that will be/is being used to store the control_panel and keycloak schemas, the following is true:

[host:port]
ssl=true
sslmode=require
Available in ≥ 3.6.8-funcrel

Where client keys are in use, check their Microsoft Windows permissions before you start. An update to 3.6.8-funcrel or later brings a PostgreSQL JDBC driver that refuses a key which is readable too widely - see Apply required permissions to client keys.

Next ensure that the relevant .conf files from the CAST Imaging installer are correctly defined, in particular the following options (see Microsoft Windows installation variables):

  • CSS_SSL_ENABLED
  • CSS_SSL_MODE
  • CSS_SSL_ROOT_CERT
  • CSS_SSL_CERT
  • CSS_SSL_KEY
  • CSS_SSL_KEY_PEM
  • CSS_INI_FILE_PATH

These options ensure that the installer can work with a target PostgreSQL instance configured with certificate-based authentication to create or interact with the control_panel and keycloak schemas.

Note about additional PostgreSQL instances configured with certificate-based authentication:

  • In a “from scratch” installation, additional PostgreSQL instances configured with certificate-based authentication are added post-install for analysis data storage, following the instructions in Configuring certificate-based authentication.
  • In an “update” scenario, any additional PostgreSQL instances configured with certificate-based authentication that have been added for analysis data storage only are not accessed during an in-place update to a new release.

Linux via Docker

There is nothing specific to do when installing CAST Imaging from scratch or performing an in-place update to a new release because the bundled PostgreSQL instance (container) cannot be configured to function in encrypted mode and this instance is always used to store the control-panel and keycloak persistence schemas. You should install and update as normal.