Modifying the tibemscreateimage EMS Docker Image Build Script

Procedure

  1. In the tibemsd-configbase.json section
    1. Modify the primary_listen to use ssl:
          "primary_listens":[
            {
              "url":"ssl://7222"
            }
          ],
    2. Add an ssl section pointing to the certificate files:
      "tibemsd":{
          …
          "ssl":{
            "ssl_server_identity":"/etc/secret/server.cert.pem",
            "ssl_server_key":"/etc/secret/server.key.pem"
          },
  2. In the tibems.sh section
    The tibemsd_run() function needs to be modified to launch the EMS server with the proper value for its -ssl_password command-line option:
        …
        if [[ \$# -ge 1 ]]; then
            PARAMS=\$*
        else
            tibemsd_seed
            PARAMS="-config /shared/ems/config/\$EMS_SERVICE_NAME.json -ssl_pass
    word \`cat /etc/secret/ssl_password\`"
        fi
        …