デフォルトでは、Router と Message Processor 間の TLS は無効になっています。
Router と Message Processor 間の TLS 暗号化を有効にするには:
- Router が Message Processor のポート 8082 にアクセスできることを確認します。
- TLS 証明書と秘密鍵を含むキーストア JKS ファイルを生成します。詳細については、 オンプレミス版 Edge の TLS/SSL の構成をご覧ください。
- キーストア JKS ファイルを Message Processor サーバーのディレクトリ(
/opt/apigee/customer/applicationなど)にコピーします。 - JKS ファイルの権限と所有権を変更します。
chown apigee:apigee /opt/apigee/customer/application/keystore.jks
chmod 600 /opt/apigee/customer/application/keystore.jksここで、
keystore.jksはキーストア ファイルの名前です。 /opt/apigee/customer/application/message-processor.propertiesファイルを編集します。 ファイルが存在しない場合は、作成します。message-processor.propertiesファイルで次のプロパティを設定します。conf_message-processor-communication_local.http.ssl=true conf/message-processor-communication.properties+local.http.port=8443 conf/message-processor-communication.properties+local.http.ssl.keystore.type=jks conf/message-processor-communication.properties+local.http.ssl.keystore.path=/opt/apigee/customer/application/keystore.jks conf/message-processor-communication.properties+local.http.ssl.keyalias=apigee-devtest # Enter the obfuscated keystore password below. conf/message-processor-communication.properties+local.http.ssl.keystore.password=OBF:obsPword
ここで、
keystore.jksはキーストア ファイル、obsPword は難読化されたキーストアと keyalias のパスワードです。注: 値
は、conf/message-processor-communication.properties+local.http.ssl.keyalias=apigee-devtest
-aliasオプションで指定された値と同じにする必要があります。keytoolコマンドの、 JKS ファイルの 作成セクションの最後で説明されているように。難読化されたパスワードの生成については、 オンプレミス版 Edge の TLS/SSL の構成をご覧ください。
message-processor.propertiesファイルが「apigee」 ユーザーによって所有されていることを確認します。chown apigee:apigee /opt/apigee/customer/application/message-processor.properties
- Message Processor と Router を停止します。
/opt/apigee/apigee-service/bin/apigee-service edge-message-processor stop
/opt/apigee/apigee-service/bin/apigee-service edge-router stop - Router で、
/opt/nginx/conf.dディレクトリ内のファイルを削除します。rm -f /opt/nginx/conf.d/*
- Message Processor と Router を起動します。
/opt/apigee/apigee-service/bin/apigee-service edge-message-processor start
/opt/apigee/apigee-service/bin/apigee-service edge-router start - Message Processor ごとにこの手順を繰り返します。
Router と Message Processor 間で TLS が有効になると、Message Processor のログファイル
に次の INFO メッセージが表示されます。
MessageProcessorHttpSkeletonFactory.configureSSL() : Instantiating Keystore of type: jks
この INFO ステートメントは、Router と Message
Processor 間で TLS が機能していることを確認します。
次の表に、
message-processor.properties で使用可能なすべてのプロパティを示します。
| プロパティ | 説明 |
|---|---|
conf_message-processor-communication_local. http.host=localhost_or_IP_address |
省略可。Router 接続をリッスンするホスト名。登録時に構成されたホスト名 をオーバーライドします。 |
conf/message-processor-communication. properties+local.http.port=8998 |
省略可。Router 接続をリッスンするポート。デフォルトは 8998 です。 |
conf_message-processor-communication_local. http.ssl=[ false | true ] |
TLS/SSL を有効にするには、true に設定します。デフォルトは false です。TLS/SSL が有効になっている場合は、local.http.ssl.keystore.path と local.http.ssl.keyalias を設定する必要があります。 |
conf/message-processor-communication. properties+local.http.ssl.keystore.path= |
キーストア(JKS または PKCS12)のローカル ファイル システム パス。
の場合は必須です。local.http.ssl=true |
conf/message-processor-communication. properties+local.http.ssl.keyalias= |
TLS/SSL 接続に使用するキーストアの鍵エイリアス。
の場合は必須です。local.http.ssl=true |
conf/message-processor-communication. properties+local.http.ssl.keyalias.password= |
キーストア内の鍵の暗号化に使用するパスワード。次の形式で難読化されたパスワードを使用します。
OBF:obsPword |
conf/message-processor-communication. properties+local.http.ssl.keystore.type=jks |
キーストアのタイプ。現在サポートされているのは JKS と PKCS12 のみです。デフォルトは JKS です。 |
conf/message-processor-communication. properties+local.http.ssl.keystore.password= |
省略可。キーストアの難読化されたパスワード。次の形式で難読化されたパスワードを使用します。OBF:obsPword |
conf_message-processor-communication_local. http.ssl.ciphers=cipher1,cipher2 |
省略可。構成すると、リストされている暗号のみが許可されます。省略すると、JDK でサポートされているすべての 暗号が使用されます。 |