Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. If you have the CA, open the ssl.config.js file in an editor. This file is located in the <DTP_SERVICES>/shared directory.
  2. Change the value of the enabled property to true and set the options to use your certificate. The complete file path to the certificate files along with their file names must be entered in the options. See the node.js documentation for a complete list of options. If the certificate was created with a passphrase, then be sure to include it in your configuration.
    Code Block
    titleSample configuration (Linux)
    var fs = require('fs');
    module.exports = {
        enabled: true,
        options: {
            key: fs.readFileSync("/path/to/file/ssl-certificate-key.key"),
            cert: fs.readFileSync("/path/to/file/ssl-certificate-file.crt"),
            ca: fs.readFileSync("/path/to/file/ssl-certificate-chain.crt"),
            passphrase: "yourpassword"
        }
    };

    Code Block
    titleSample configuration (Windows)
    var fs = require('fs');
    module.exports = {
        enabled: true,
        options: {
            key: fs.readFileSync("C:\\path\\to\\file\\ssl-certificate-key.key"),
            cert: fs.readFileSync("C:\\path\\to\\file\\ssl-certificate-file.crt"),
            ca: fs.readFileSync("C:\\path\\to\\file\\ssl-certificate-chain.crt"),
            passphrase: "yourpassword"
        }
    };
  3. Save the file.

...