...
- If you have the CA, open the ssl.config.js file in an editor. This file is located in the
<DTP_SERVICES>/shared
directory. - Change the value of the
enabled
property totrue
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 title Sample 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 title Sample 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" } };
- Save the file.
...