...
- 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 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.
The same ports are used when SSL is enabled for DTP Enterprise Pack, but they will all use the HTTPS protocol. DTP Enterprise Pack will also use SSL-enabled ports to communicate with DTP. If you want to send data between DTP and Enterprise Pack applications over HTTPS, you must enable SSL for both systems to make sure they work properly.
...