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:\Program Files\Precisely\Spectrum\server\conf\certs\node-keystore.p12"
         -destkeystore "C:\Program Files\Precisely\Spectrum\server\conf\certs\truststore.p12" -deststoretype pkcs12
  2. In the same directory where your CLI executable is located, create a file called: cli.properties.
    Here is a sample of the file 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