方法 3: Spectrum に、独自の自己署名証明書を設定する
この設定を実稼働環境で使用することはお勧めしません。
- Spectrum サーバーを停止します。
- キーストアと信頼ストアを作成し、SpectrumDirectory/server/conf/certs フォルダにコピーします。必ずこの場所を使用してください。
- 次のサーバーの場所で暗号化設定を行います。 SpectrumDirectory/server/conf
-
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
- Spectrum サーバーを起動します。