JBoss Application Server で SSL を設定するには、認証時に SSL 秘密鍵証明書が必要です。秘密鍵証明書は、Java keytool を使用して作成するか、認証局(CA)から要求して読み込むことができます。その後、JBoss で SSL を有効にする必要があります。
1 つのコマンドでキーストアの作成に必要なすべての情報を指定することによって、keytool を実行できます。
ここでの手順では次のように指定します。
[appserver root]
は、AEM Forms を実行するアプリケーションサーバーのホームディレクトリです。[type]
は、実行したインストールの種類に応じて異なる、フォルダー名です。コマンドプロンプトで、[JAVA HOME]/bin に移動し、次のコマンドを入力して秘密鍵証明書とキーストアを作成してください。
keytool -genkey -dname "CN=
ホスト名 , OU=
グループ名 , O=
会社名 ,L=
市区町村名 , S=
都道府県 , C=
国コード"-alias "AEMForms Cert"
-keyalg RSA -keypass
key_password -keystore
keystorename .keystore
[JAVA_HOME]
は JDK がインストールされているディレクトリに置き換え、斜体のテキストは自分の環境に対応する値に置き換えます。「Host Name」は、アプリケーションサーバーの完全修飾ドメイン名です。
パスワードの入力を求められたら、keystore_password
を入力します。キーストアおよびキーのパスワードは、同じである必要があります。
この手順で入力された keystore_password
は、手順 1 で入力したパスワード(key_password)と同じである場合も、異なる場合もあります。
次のいずれかのコマンドを入力して、keystorename.keystore を [appserver root]/server/[type]/conf
ディレクトリにコピーします。
copy
keystorename.keystore[appserver root]\standalone\configuration
keystorename.keystore[appserver root]\domain\configuration
をコピーcp keystorename.keystore [appserver root]/standalone/configuration
cp <em>keystorename</em>.keystore<em>[appserver root]</em>/domain/configuration
次のコマンドを入力して、証明書ファイルを書き出します。
keytool -export -alias "AEMForms Cert" -file AEMForms_cert.cer -keystore [appserver root]/standalone/configuration/keystorename.keystore
keytool -export -alias "AEMForms Cert" -file AEMForms_cert.cer -keystore [appserver root]/domain/configuration/keystorename.keystore
パスワードの入力を求められたら、keystore_passwordを入力します。
次のコマンドを入力して、AEMForms_cert.cer ファイルを [appserver root]¥conf ディレクトリにコピーします。
copy AEMForms_cert.cer [appserver root]\standalone\configuration
copy AEMForms_cert.cer [appserver root]\domain\configuration
cp AEMForms _cert.cer [appserver root]\standalone\configuration
cp AEMForms _cert.cer [appserver root]\domain\configuration
次のコマンドを入力して、証明書の内容を表示します。
keytool -printcert -v -file [appserver root]\standalone\configuration\AEMForms_cert.cer
keytool -printcert -v -file [appserver root]\domain\configuration\AEMForms_cert.cer
[JAVA_HOME]\jre\lib\security
の cacerts ファイルへの書き込みアクセス権を付与するには、必要に応じて、次のタスクを実行します。
chmod 777 cacerts
次のコマンドを入力して、証明書ファイルを読み込みます。
keytool -import -alias "AEMForms Cert" -file
AEMForms_cert .cer -keystore
JAVA_HOME \jre\lib\security\cacerts
パスワードとしてchangeit
を入力します。Java インストールではこれがデフォルトのパスワードですが、システム管理者によって変更されている場合があります。
Trust this certificate? [no]
の入力を求められた場合:yes
と入力します。「Certificate was added to keystore」という確認メッセージが表示されます。
Workbench から SSL 経由で接続している場合は、Workbench コンピューターに証明書をインストールします。
テキストエディターで、次のファイルを開いて編集します。
シングルサーバー - [appserver root]
¥standalone¥configuration¥lc_<dbname/turnkey>.xml
サーバークラスター - [appserver root]
¥domain¥configuration¥host.xml
サーバークラスター - [appserver root]
¥domain¥configuration¥domain_<dbname>.xml
<security-realm name="SSLRealm">
<server-identities>
<ssl>
<keystore path="C:/Adobe/Adobe_Experience_Manager_Forms/jboss/standalone/configuration/aemformses.keystore" keystore-password="changeit" alias="AEMformsCert" key-password="changeit"/>
</ssl>
</server-identities>
</security-realm>
次のコードの後の<server>
セクションを探します。
<http-listener name="default" socket-binding="http" redirect-socket="https" max-post-size="104857600"/>
上記のコードの後の <server> セクションに次のテキストを追加します。
<https-listener name="default-secure" socket-binding="https" security-realm="SSLRealm"/>
<security-realm name="SSLRealm">
<server-identities>
<ssl>
<keystore path="C:/Adobe/Adobe_Experience_Manager_Forms/jboss/standalone/configuration/aemformses.keystore" keystore-password="changeit" alias="AEMForms Cert" key-password="changeit"/>
</ssl>
</server-identities>
</security-realm>
サーバークラスターのプライマリノード上の [appserver root]¥domain¥configuration¥domain_<dbname>.xml で、次のコードの後に表示される <server> セクションを探してください。
<http-listener name="default" socket-binding="http" redirect-socket="https" max-post-size="104857600"/>
上記のコードの後の <server> セクションに次のテキストを追加します。
<https-listener name="default-secure" socket-binding="https" security-realm="SSLRealm"/>
keystoreFile
属性および keystorePass
属性の値を、キーストアの作成時に指定したキーストアパスワードに変更します。
アプリケーションサーバーを再起動します。
自動インストールの場合:
Adobe により事前設定された、または手動で設定した JBoss インストールの場合:
コマンドプロンプトで、*[appserver root]
*¥bin に移動します。
次のコマンドを入力して、サーバーを停止します。
shutdown.bat -S
./shutdown.sh -S
JBoss プロセスが完全にシャットダウンする(JBoss プロセスが、起動された端末にコントロールを返す)まで待機します。
次のコマンドを入力して、サーバーを起動します。
run.bat -c <profile>
./run.sh -c <profile>
SSL を使用して管理コンソールにアクセスするには、web ブラウザーで https://[host name]:'port'/adminui
を入力してください。
JBoss のデフォルト SSL ポートは 8443 です。以降 AEM Forms にアクセスするときはこのポートを指定します。
コマンドプロンプトで、[JAVA HOME]/bin に移動し、次のコマンドを入力してキーストアとキーを作成してください。
keytool -genkey -dname "CN=
ホスト名 , OU=
グループ名 , O=
会社名 , L=
市区町村名 , S=
都道府県 , C=
国コード" -alias "AEMForms Cert"
-keyalg RSA -keypass
-key_password -keystore
keystorename .keystore
[JAVA_HOME]
を JDK がインストールされているディレクトリに置き換え、斜体のテキストは自分の環境に対応する値に置き換えます。
次のコマンドを入力して証明書要求を生成し、認証局に送信します
keytool -certreq -alias
「AEMForms Cert」-keystore
keystorename .keystore -file
AEMFormscertRequest.csr
証明書ファイルの要求が完了したら、次の手順を実行します。
コマンドプロンプトで、*[JAVA HOME]
*¥bin に移動し、次のコマンドを入力して CSR が署名された CA のルート証明書を読み込みます。
keytool -import -trustcacerts -file
rootcert.pem -keystore keystorename.keystore -alias root
ルート証明書がブラウザーにない場合は、ブラウザーにも読み込みます。
[JAVA_HOME]
を JDK がインストールされているディレクトリに置き換え、斜体のテキストは自分の環境に対応する値に置き換えます。
コマンドプロンプトで、*[JAVA HOME]
*¥bin に移動し、次のコマンドを入力して秘密鍵証明書をキーストアに読み込みます。
keytool -import -trustcacerts -file
CACertificateName .crt -keystore
keystorename .keystore
[JAVA_HOME]
を JDK がインストールされているディレクトリに置き換え、斜体のテキストは自分の環境に対応する値に置き換えます。SSL 秘密鍵証明書の作成の手順 13~18 を実行します。