コマンドプロンプトで<Zoho_Analytics_Home>\jre\bin>ディレクトリーに移動し、次のコマンドを実行します。
完全修飾ドメイン名の情報をZoho Analyticsのキーストアに入力します。
keytool -genkey -alias analytics -keyalg RSA -keystore server.keystore
パスワードとして「accounts」を入力します。独自のパスワードを使用する場合は、次のファイル内のkeystorePassキーワードの後に同じパスワードを設定してください。
<Zoho_Analytics>/conf/server.xml
メモ:最初に表示される名前の入力欄はコモンネームを表すため、ドメイン名を入力してください。
エントリーを削除するには、次のコマンドを使用します。
次のコマンドを実行します。
keytool -import -alias root -keystore server.keystore -trustcacerts -file <root certificate>
.pemファイルと.keyファイルを、OpenSSLの<C:\Program Files (x86)\GnuWin32in>に配置します。OpenSSLがインストールされていない場合は、インストールしてから続行してください。
コマンドプロンプトを使用して、OpenSSLのインストールフォルダーに移動します。(例:<C:Program Files (x86)GnuWin32\bin>)
次のコマンドを実行します。
openssl pkcs12 -export -in <.pem file> -inkey <.key file> -out ./mydomain.com.p12
ここで、mydomain.comは実際に使用するドメインURLです。
<C:\Program Files (x86)\GnuWin32\bin>からmydomain.com.p12をコピーし、<Zoho_Analytics\jre\bin>に配置します。
コマンドプロンプトで次のコマンドを実行します。
keytool -importkeystore -srckeystore ./mydomain.com.p12 -srcstoretype PKCS12 -destkeystore server.keystore
Zoho Analyticsサーバーを停止します。
既存のserver.keystoreを置き換えます。<Zoho_Analytics\jre\bin>ディレクトリーにあるserver.keystoreファイルを、次の場所にコピーします。
<Zoho_Analytics>\conf
Zoho Analyticsサーバーを再起動します。
次の場所からpfxファイル(name.pfx)をコピーし、同じ場所にある「server.xml」ファイルをワードパッドで開きます。(変更を加える前に、server.xmlファイルのバックアップを作成してください。)
C:\Zoho\Analytics\conf
server.xmlファイル内で、次のエントリーを探します。
keystorePass='accounts' keystoreFile='conf/server.keystore'
ファイル名server.keystoreをpfxファイル名(name.pfx)に置き換え、ファイル名の後にkeystoreType='pkcs12'を入力します。また、keystorePassの値「accounts」を.pfxファイルのパスワードに置き換えます。エントリーは次のようになります。
keystorePass='your pfx password' keystoreFile='conf/name.pfx' keystoreType='pkcs12'
Zoho Analyticsを再起動します。
認証局によっては、拡張子が.p7bの証明書が提供される場合があります。この場合、ファイルをダブルクリックすると、必要な証明書の一覧が表示されるコンソールが開きます。これらの証明書は、Base-64エンコードX.509(.cer)ファイルとしてエクスポートできます。その後、こちらの手順に従って、これらの証明書をキーストアファイルにインストールできます。
証明書をエクスポートするには、次の手順を実行します。
domain.P7Bを探します。証明書を右クリックし、[すべてのタスク]に移動して、[エクスポート]を選択します。
証明書のエクスポートウィザードのダイアログが表示されます。エクスポートファイル形式として[Base-64エンコードX.509(.cer)]を選択し、[次へ]をクリックします。
エクスポートするファイルの名前を指定し、[次へ]をクリックします。
エクスポートが正常に完了したら、指定した設定を確認し、[完了]をクリックします。
主要ベンダーの証明書をインストールするために必要なコマンドは次のとおりです。認証局が発行する証明書によっては、手順が異なる場合があります。
認証局がGoDaddyの場合は、次の手順を実行します。
keytool -import -alias root -keystore server.keystore -trustcacerts -file gd_bundle.crt
keytool -import -alias cross -keystore server.keystore -trustcacerts -file gd_cross_intermediate.crt
keytool -import -alias intermediate -keystore server.keystore -trustcacerts -file gd_intermediate.crt
keytool -import -alias <Alias Specified when creating the Keystore> -keystore server.keystore -trustcacerts -file <CertificateName>.crt
認証局がVerisignの場合は、次の手順を実行します。
keytool -import -alias root -keystore server.keystore -trustcacerts -file <your_root_certificate_name>.cer
keytool -import -alias intermediateCA -keystore server.keystore -trustcacerts -file <your_intermediate_certificate_name>.cer
keytool -import -alias <Alias Specified when creating the Keystore> -keystore server.keystore -trustcacerts -file <CertificateName>.cer
認証局がComodoの場合は、次の手順を実行します。
keytool -import -trustcacerts -alias root -file AddTrustExternalCARoot.crt -keystore server.keystore
keytool -import -trustcacerts -alias addtrust -file UTNAddTrustServerCA.crt -keystore server.keystore
keytool -import -trustcacerts -alias ComodoUTNServer -file ComodoUTNServerCA.crt -keystore server.keystore
keytool -import -trustcacerts -alias essentialSSL -file essentialSSLCA.crt -keystore server.keystore
keytool -import -trustcacerts -alias <Alias Specified when creating the Keystore> -file <Certificate-Name>.crt -keystore server.keystore