Import a SSL Certificate to DMC

A self-signed certificate is established during installation. Typically a warning regarding this certificate appears upon opening DMC. To complete the requirements for SSL (and eliminate the warning), you need to create and load your own SSL certificate. It must be signed by a root authority that is trusted by your network.

Tip: It is strongly recommended to obtain and import a certificate by a certified authority. Learn how to do so here: Manage your default ports and HTTP protocols

If you must import a public and private key pair, follow the below instructions to do so.

Load the SSL Certificate into DMC

Java's keytool CLI, which ships with DMC, can manage a keystore (database) of cryptographic keys, X.509 certificate chains, and trusted certificates.

Ultimately, the keystore.p12 file in DATICAL_HOME/data/datical-service/ needs to have the signed public key, private key, and certificate chain included in it under the alias "datical" with a password of “datical”.

Tip: It is usually best to make a backup of the original file before working with it.

  1. Copy the converted certificate and private key into a PKCS 12 (.p12) file to DATICAL_HOME/data/datical-service on the DMC server.

  2. Run:
    • If you are in demo mode you can stop all services at once:
      datical-control service stop all
    • If you are in production mode you must stop each service individually:
      sudo datical-control service stop proxy
      sudo datical-control service stop datical-service
      sudo datical-control service stop keycloak
  3. Delete a certificate that came with DMC:
    DATICAL_HOME/jre/bin/keytool -delete -alias datical -keystore keystore.p12
  4. Import the PKCS 12 certificate by executing the following command:
    DATICAL_HOME/jre/bin/keytool -importkeystore -deststorepass datical -destkeystore DATICAL_HOME/data/datical-service/keystore.p12 -srckeystore DATICAL_HOME/data/datical-service/domain.p12 -srcstoretype PKCS12
  5. Run:
    datical-control service start all