...
sslOptions can either be specified as an object, or as a string pointing to an encrypted file created with the store_options.js utility.
Using store_options.js
The store_options.js script creates an encrypted file. This is useful when you are using a passphrase and don't want to store it in the clear in your configuration file.
Usage
The syntax for the command is:
Code Block |
---|
node store_options.js --key1 value1 --key2 value2 |
If a value contains special characters, such as a backslash ( \ ), make sure to enclose the value in quotes or escape it. For example:
Code Block |
---|
node store_options.js --pfx "c:\pjscerts\cert.pfx" |
or
Code Block |
---|
node store_options.js --pfx c:\\pjscerts\\cert.pfx |
Output file
The default output file is name is ssl_options. To specify a different output file, use the --file command line parameter. For eample:
Code Block |
---|
node store_options.js --file my_options --pfx "c:\pjscerts\cert.pfx" --passphrase "xxxxxxxxxxxxxxx" |