NetWorker:java.io.IOException: キーストアの形式が無効です
Summary: Java keytoolを使用して、NetWorker AUTHCまたはNetWorker NWUI(Webユーザー インターフェイス)キーストア ファイルを一覧表示または変更できません。
Symptoms
NetWorker認証(AUTHC)サーバーまたはNetWorker Webユーザー インターフェイス(NWUI)サーバーには、Java Runtime Environment (JRE)が含まれています。通常、これはNetWorker Runtime Environment (NRE)を使用して簡単に行うことができます。
Linuxの場合 /opt/nre/java/latest
Windowsの場合: C:\Program Files\NRE\java\jre#.#.#_###
使用する場合 keytool コマンドを実行してNetWorker authc/NWUIキーストア ファイルを確認すると、Javaエラーが表示されます。
[root@nsr bin]# keytool -list -keystore /nsr/authc/conf/authc.keystore Enter keystore password: keytool error: java.io.IOException: Invalid keystore format
このエラーは、 keytool コマンドをNRE java binディレクトリから直接実行します。
NetWorkerサーバー キーストア ファイル:
-
/nsr/authc/conf/authc.keystore/nsr/authc/conf/authc.truststore/opt/nsr/authc-server/conf/authc.truststore/opt/nre/java/latest/lib/security/cacerts
-
C:\Program Files\EMC NetWorker\nsr\authc-server\conf\authc.truststoreC:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\conf\authc.keystoreC:\Program Files\NRE\java\jre##.#_###\lib\security\cacerts
-
/nsr/nwui/monitoring/app/conf/nwui.keystore/opt/nre/java/latest/cacerts
-
C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\nwui.keystoreC:\Program Files\NRE\java\jre#.#.#_###\lib\security\cacerts
Cause
ホストに別のバージョンのOracle Java Runtime Environment (JRE)がインストールされています。Oracle JREのインストールがNREに干渉しています。
Resolution
NetWorkerアプリケーションでは、NRE(NetWorkerランタイム環境)を使用することをお勧めします。NetWorkerサーバーのAUTHCインストール ログには、使用された「Javaパス」が特定されます。
/opt/nsr/authc-server/logs/install.log
[root@nsr ~]# cat /opt/nsr/authc-server/logs/install.log | grep "Java Path" Java Path Yes /opt/nre/java/latest Java Path Yes /opt/nre/java/latest Java Path Yes /opt/nre/java/latestWindowsの場合:
%LOCALAPPDATA%\Temp\NetWorker_YYYYMMDDHHmmSS_#_AuthC.log
JAVAHOME = C:\Program Files\NRE\java\jre1.8.0_471または、管理コマンド プロンプトから次のコマンドを実行します。
echo %NSR_JAVA_HOME%
$env:NSR_JAVA_HOME
C:\Users\Administrator.NETWORKER>echo %NSR_JAVA_HOME% C:\Program Files\NRE\java\jre1.8.0_471 PS C:\Users\Administrator.NETWORKER> $env:NSR_JAVA_HOME C:\Program Files\NRE\java\jre1.8.0_471
コマンドライン変数を使用して強制する keytool NREからの使用状況:
Linuxの場合
keytool=/opt/nre/java/latest/bin/keytool
Example:
[root@nsr ~]# keytool=/opt/nre/java/latest/bin/keytool
変数を使用して、すべてのkeytoolコマンドを実行します。
[root@nsr ~]# $keytool Key and Certificate Management Tool Commands: -certreq Generates a certificate request -changealias Changes an entry's alias -delete Deletes an entry -exportcert Exports certificate -genkeypair Generates a key pair -genseckey Generates a secret key -gencert Generates certificate from a certificate request -importcert Imports a certificate or a certificate chain -importpass Imports a password -importkeystore Imports one or all entries from another keystore -keypasswd Changes the key password of an entry -list Lists entries in a keystore -printcert Prints the content of a certificate -printcertreq Prints the content of a certificate request -printcrl Prints the content of a CRL file -storepasswd Changes the store password of a keystore Use "keytool -command_name -help" for usage of command_name
Windowsの場合:
コマンド NSR_JAVA_HOME NRE からコマンドを実行するには bin directory.
コマンド プロンプトの例:
"%NSR_JAVA_HOME%\bin\keytool.exe" OPTIONS
PowerShellの例:
& "$env:NSR_JAVA_HOME\bin\keytool.exe" OPTIONS
C:\Users\Administrator.NETWORKER>"%NSR_JAVA_HOME%\bin\keytool.exe" Key and Certificate Management Tool Commands: -certreq Generates a certificate request -changealias Changes an entry's alias -delete Deletes an entry -exportcert Exports certificate -genkeypair Generates a key pair -genseckey Generates a secret key -gencert Generates certificate from a certificate request -importcert Imports a certificate or a certificate chain -importpass Imports a password -importkeystore Imports one or all entries from another keystore -keypasswd Changes the key password of an entry -list Lists entries in a keystore -printcert Prints the content of a certificate -printcertreq Prints the content of a certificate request -printcrl Prints the content of a CRL file -storepasswd Changes the store password of a keystore Use "keytool -command_name -help" for usage of command_name ............................................................................................................................................................................. PS C:\Users\Administrator.NETWORKER> & "$env:NSR_JAVA_HOME\bin\keytool.exe" Key and Certificate Management Tool Commands: -certreq Generates a certificate request -changealias Changes an entry's alias -delete Deletes an entry -exportcert Exports certificate -genkeypair Generates a key pair -genseckey Generates a secret key -gencert Generates certificate from a certificate request -importcert Imports a certificate or a certificate chain -importpass Imports a password -importkeystore Imports one or all entries from another keystore -keypasswd Changes the key password of an entry -list Lists entries in a keystore -printcert Prints the content of a certificate -printcertreq Prints the content of a certificate request -printcrl Prints the content of a CRL file -storepasswd Changes the store password of a keystore Use "keytool -command_name -help" for usage of command_name
NetWorkerがNRE(NetWorkerランタイム環境)を使用しており、別のOracle JRE(Java Runtime Environment)がインストールされている場合は、Oracle JREパッケージを削除します。
Linuxの場合
- 別のJREインストールを確認します。次のコマンドを使用できます。ただし、Linux システム管理者に問い合わせてください。
rpm -qa --last | grep jre find / -name java -type f
/etc/alternatives /usr/bin/java /usr/lib/jreX
- 別のJREパッケージがインストールされている場合は、削除できるかどうかをLinuxシステム管理者に問い合わせてください。
rpm -e package_name
Windowsの場合:
- Windowsの[コントロール パネル]の[プログラムと機能>]を開きます。
- Oracle Java Runtime Environmentパッケージ(NetWorker Runtime Environmentを除く)のリストを確認します。
- Oracle Java Runtime Environmentがインストールされている場合は、削除できるかどうかはWindowsシステム管理者に問い合わせてください。
- システムからOracle Java Runtime Environmentをアンインストールします。
- Oracle JREが削除されたら、新しいコマンド プロンプト セッションを開いてkeytoolコマンドを実行します。