18.2. サーバーでシリアル化を有効にする


手順18.1 タスク

  1. SOA_ROOT ディレクトリーに移動します: cd SOA_ROOT
  2. keytool コマンドを実行し、画面のプロンプトに従います。
    keytool -genkey -alias droolsKey -keyalg RSA -keystore MyDroolsPrivateKeyStore.keystore
    Enter keystore password:  
    Re-enter new password: 
    What is your first and last name?
      [Unknown]:  Test User
    What is the name of your organizational unit?
      [Unknown]:  HR
    What is the name of your organization?
      [Unknown]:  Test Org
    What is the name of your City or Locality?
      [Unknown]:  Brisbane
    What is the name of your State or Province?
      [Unknown]:  QLD
    What is the two-letter country code for this unit?
      [Unknown]:  AU
    Is CN=Test User, OU=HR, O=Test Org, L=Brisbane, ST=QLD, C=AU correct?
      [no]:  yes
    Enter key password for droolsKey
         (RETURN if same as keystore password):  
    Re-enter new password:
    
    すべての質問に回答すると、パスワードで保護された MyDroolsPrivateKeyStore.keystore という名前のファイルが作成されます。このキーストアファイルには、パスワード drools とともに droolsKey という秘密鍵があります。このファイルを環境内の安全な場所に保存します。これ以降、これを keystoredir と呼びます。
    重要
    上記のパスワードは単なる例であり、実稼動環境では使用しないでください。
  3. 設定ファイルを開きます: vi jboss-as/server/default/deploy/properties-service.xml
  4. 次のスニペットを properties-service.xml に追加して、JBoss Rules シリアライゼーション機能を使用するように JBoss Enterprise SOA Platform を設定します。
    <mbean code="org.jboss.varia.property.SystemPropertiesService"  name="jboss:type=Service,name=SystemProperties">
        <attribute name="Properties">
          # Drools Security Serialization specific properties
          drools.serialization.sign=true
          drools.serialization.private.keyStoreURL=file://$keystoredir/MyDroolsPrivateKeyStore.keystore
          drools.serialization.private.keyStorePwd=drools
          drools.serialization.private.keyAlias=droolsKey
          drools.serialization.private.keyPwd=drools
        </attribute>
    </mbean>
    
  5. drools.serialization.sign プロパティーを true に設定します
    drools.serialization.sign=true
    
    • drools.serialization.private.keyStoreURL=<RL> は、秘密鍵ストアの場所の URL です。
    • 上記の例で、keystoredirMyDroolsKeyStore.keystore を、キーストアディレクトリーと、keytool で作成したキーストアの名前に置き換えます。
    • drools.serialization.private.keyStorePwd=<password> は、プライベートキーストアにアクセスするためのパスワードです。
    • drools.serialization.private.keyAlias=<key> は秘密鍵のキーエイリアス (識別子) です。
    • drools.serialization.private.keyPwd=<password> は秘密鍵のパスワードです。
  6. ファイルを保存して終了します。
  7. サーバーインスタンスを再起動します。
    警告
    システムプロパティーが正しく設定されていない場合、ルールパッケージをビルドしようとすると、次のエラーが表示されます。
    An error occurred building the package.
    
    Error
    signing object store: Key store with private key not configured. Please
    configure it properly before using signed serialization
    

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat
トップに戻る