NetWorker: java.io.IOException: Formato de almacenamiento de claves no válido
Summary: No se pueden enumerar ni modificar archivos de almacenamiento de claves de NetWorker AUTHC o de la interfaz de usuario web de NetWorker (NWUI) mediante Java Keytool.
Symptoms
El servidor de autenticación de NetWorker (AUTHC) o el servidor de interfaz de usuario web de NetWorker (NWUI) incluyen Java Runtime Environment (JRE). Por lo general, esto se facilita mediante el entorno de tiempo de ejecución de NetWorker (NRE).
Linux: /opt/nre/java/latest
Windows: C:\Program Files\NRE\java\jre#.#.#_###
Cuando se utiliza el método keytool comando para revisar los archivos del almacén de claves de NetWorker authc/NWUI, aparece un error de Java:
[root@nsr bin]# keytool -list -keystore /nsr/authc/conf/authc.keystore Enter keystore password: keytool error: java.io.IOException: Invalid keystore format
Este error aparece incluso cuando se ejecuta el comando keytool directamente desde el directorio bin java de NRE.
Archivos del almacenamiento de claves de NetWorker Server:
-
/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
Hay otra versión de Oracle Java Runtime Environment (JRE) instalada en el host. La instalación de Oracle JRE está interfiriendo con NRE.
Resolution
Se recomienda utilizar NetWorker Runtime Environment (NRE) con aplicaciones de NetWorker. El registro de instalación de AUTHC del servidor de NetWorker identifica qué "ruta de Java" se utilizó:
/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_471Como alternativa, en una línea de comandos administrativa, ejecute lo siguiente:
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
Utilice una variable de línea de comandos para forzar keytool uso de NRE:
Linux:
keytool=/opt/nre/java/latest/bin/keytool
Ejemplo:
[root@nsr ~]# keytool=/opt/nre/java/latest/bin/keytool
Ejecute todos los comandos keytool usando la variable:
[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:
Use el comando NSR_JAVA_HOME para ejecutar comandos desde NRE bin directorio.
Ejemplo del símbolo del sistema:
"%NSR_JAVA_HOME%\bin\keytool.exe" OPTIONS
Ejemplo de 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
Si NetWorker utiliza NetWorker Runtime Environment (NRE) y se instala otro Oracle Java Runtime Environment (JRE), elimine el paquete de Oracle JRE.
Linux:
- Compruebe si hay otra instalación de JRE, se pueden utilizar los siguientes comandos; sin embargo, consulte con el administrador del sistema Linux:
rpm -qa --last | grep jre find / -name java -type f
/etc/alternatives /usr/bin/java /usr/lib/jreX
- Si hay otro paquete de JRE instalado, consulte con el administrador del sistema Linux para ver si se puede eliminar.
rpm -e package_name
Windows:
- Abra el Panel de control de Windows:> Programas y características.
- Revise la lista de un paquete de Oracle Java Runtime Environment (sin incluir NetWorker Runtime Environment).
- Si Oracle Java Runtime Environment está instalado, consulte con el administrador del sistema de Windows para saber si se puede eliminar.
- Desinstale Oracle Java Runtime Environment del sistema.
- Abra una nueva sesión del símbolo del sistema para ejecutar comandos keytool una vez que se haya eliminado Oracle JRE.
Additional Information
- NetWorker: Cómo identificar qué servidor es el servidor de autenticación utilizado por NMC y NWUI
- NetWorker: Cómo configurar la autenticación de LDAPS
- NetWorker: Cómo importar o reemplazar certificados firmados por una autoridad de certificación para "AUTHC" y "NWUI" (Linux)
- NetWorker: Cómo importar o reemplazar certificados firmados por una autoridad de certificación para "AUTHC" y "NWUI" (Windows)