Setting up Command Line Interface (CLI) properties in an HTTPS-enabled server environment
If using self-signed certificates , make sure to import them to your local machine.
- Import your self-signed certificates. For
example:
keytool -importkeystore -srckeystore "C:\Pitney Bowes\Spectrum\server\conf\certs\node-keystore.p12" -destkeystore "C:\Pitney Bowes\Spectrum\server\conf\certs\truststore.p12" -deststoretype pkcs12
- In the same directory where your CLI executable is located, create a file called:
cli.properties.
Here's a sample file and its contents:
# sample properties spectrum.encryption.keystoreType=pkcs12 spectrum.encryption.keystore=C:\\Users\\Spectrum\\mycerts\\node-keystore.p12 spectrum.encryption.keystorePassword=p1tn3yb0w3s spectrum.encryption.keystoreAlias=spectrum spectrum.encryption.truststoreType=pkcs12 spectrum.encryption.truststore=C:\\Users\\Spectrum\\mycerts\\truststore.p12 spectrum.encryption.truststorePassword=p1tn3yb0w3s spectrum.encryption.truststoreAlias=spectrum spectrum.encryption.trustAllHosts=true spectrum.encryption.trustSelfSigned=false