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.

  1. Import your self-signed certificates. For example:
    keytool -importkeystore -srckeystore "C:\Pitney Bowes\Spectrum\server\app\conf\certs\node-keystore.p12"
    -destkeystore "C:\Pitney Bowes\Spectrum\server\app\conf\certs\truststore.p12" -deststoretype pkcs12
  2. 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=true