方法 3: Spectrum に、独自の自己署名証明書を設定する

この設定を実稼働環境で使用することはお勧めしません。

  1. Spectrum サーバーを停止します。
  2. キーストアと信頼ストアを作成し、SpectrumDirectory/server/conf/certs フォルダにコピーします。必ずこの場所を使用してください。
  3. 次のサーバーの場所で暗号化設定を行います。 SpectrumDirectory/server/conf
  4. spectrum-container.properties で以下のプロパティを変更します。
    • spectrum.encryption.enabled=true
    • spectrum.encryption.algorithm=JASYPT
    • spectrum.encryption.selfSignedCert=true
    • spectrum.encryption.trustAllHosts=true
      注: Set spectrum.encryption.trustAllHosts to true only if a single certificate will be used across multiple hosts.
    • spectrum.encryption.keystoreType=pkcs12 or jks
    • spectrum.encryption.keystore=node-keystore.p12
    • spectrum.encryption.keystorePassword=keystorepassword
    • spectrum.encryption.keystoreAlias=keystore alias, if one applies
    • spectrum.encryption.truststoreType= pkcs12 or jks
    • spectrum.encryption.truststore=truststore.p12
    • spectrum.encryption.truststorePassword=truststorepassword
  5. Spectrum サーバーを起動します。