NetWorker: java.io.IOException: Ogiltigt nyckelformat

Summary: Det går inte att visa eller ändra NetWorker AUTHC- eller NWUI-nyckelfiler (NetWorker Web User Interface) med java-nyckelverktyget.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

I AUTHC-servern (NetWorker Authentication) eller NWUI-servern (NetWorker Web User Interface) ingår Java Runtime Environment (JRE). Vanligtvis underlättas detta med hjälp av NetWorker Runtime Environment (NRE).

Linux: /opt/nre/java/latest
Windows: C:\Program Files\NRE\java\jre#.#.#_###

Obs! Det finns ingen "senaste" symbolisk länk på Windows-värdar. Beroende på vilken NRE-version som är installerad omfattar JRE-sökvägen den JRE-version som ingår i NRE-versionen.

När du använder keytool kommando för att granska NetWorker authc/NWUI keystore-filer visas ett java-fel:

[root@nsr bin]# keytool -list -keystore /nsr/authc/conf/authc.keystore
 Enter keystore password:
 keytool error: java.io.IOException: Invalid keystore format

Det här felet visas även när du kör keytool kommandot direkt från NRE java bin-katalogen.

NetWorker Server Keystore-filer:

Linux: 
    • /nsr/authc/conf/authc.keystore
    • /nsr/authc/conf/authc.truststore
    • /opt/nsr/authc-server/conf/authc.truststore
    • /opt/nre/java/latest/lib/security/cacerts
Windows:
    • C:\Program Files\EMC NetWorker\nsr\authc-server\conf\authc.truststore
    • C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\conf\authc.keystore
    • C:\Program Files\NRE\java\jre##.#_###\lib\security\cacerts
NetWorker-filer för webbanvändargränssnitt (NWUI):
Linux:
    • /nsr/nwui/monitoring/app/conf/nwui.keystore
    • /opt/nre/java/latest/cacerts
Windows:
    • C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\nwui.keystore
    • C:\Program Files\NRE\java\jre#.#.#_###\lib\security\cacerts

Cause

Det finns en annan version av Oracle Java Runtime Environment (JRE) installerad på värden. Oracle JRE-installationen stör NRE.

Resolution

Vi rekommenderar att du använder NetWorker Runtime Environment (NRE) med NetWorker-program. NetWorker-serverns AUTHC-installationslogg identifierar vilken "Java-sökväg" som användes:

Linux: /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/latest
Windows: %LOCALAPPDATA%\Temp\NetWorker_YYYYMMDDHHmmSS_#_AuthC.log
JAVAHOME = C:\Program Files\NRE\java\jre1.8.0_471
Du kan också köra följande från en administrativ kommandotolk:
echo %NSR_JAVA_HOME%
Eller administrativ PowerShell-prompt:
$env:NSR_JAVA_HOME
Exempel:
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


Använd en kommandoradsvariabel för att tvinga fram keytool användning från NRE:

Obs! Dessa variabler gäller endast för det aktuella gränssnittet eller prompten. När sessionen har stängts rensas de.

Linux:

keytool=/opt/nre/java/latest/bin/keytool

Exempel:

[root@nsr ~]# keytool=/opt/nre/java/latest/bin/keytool

Kör alla keytool-kommandon med variabeln:

[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:

Använd tangenten NSR_JAVA_HOME för att köra kommandon från NRE bin Katalog.

Exempel på kommandotolk:

"%NSR_JAVA_HOME%\bin\keytool.exe" OPTIONS

PowerShell-exempel:

& "$env:NSR_JAVA_HOME\bin\keytool.exe" OPTIONS
Exempel:
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

 

Om NetWorker använder NetWorker Runtime Environment (NRE) och en annan Oracle Java Runtime Environment (JRE) är installerad tar du bort Oracle JRE-paketet.

Linux:

VARNING! Ta inte bort Oracle JRE-paketet om servern är en NetWorker Virtual Edition (NVE).
  1. Sök efter ytterligare en JRE-installation, följande kommandon kan användas. Rådgör dock med din Linux-systemadministratör:
rpm -qa --last | grep jre
find / -name java -type f
/opt/nre/java/jreX är NetWorker Runtime-miljön. Andra paket kan dock förekomma:
/etc/alternatives
/usr/bin/java
/usr/lib/jreX
  1. Om ett annat JRE-paket är installerat kontaktar du Linux-systemadministratören för om det kan tas bort.
rpm -e package_name

Windows: 

  1. Öppna Kontrollpanelen i Windows -> Program och funktioner.
  2. Granska listan för ett Oracle Java Runtime Environment-paket (exklusive NetWorker Runtime Environment).
  3. Om Oracle Java Runtime Environment är installerat kontaktar du Windows-systemadministratören om det går att ta bort.
  4. Avinstallera Oracle Java Runtime Environment från systemet.
  5. Öppna en ny kommandotolkssession för att köra keytool-kommandon när Oracle JRE har tagits bort.

Additional Information

Affected Products

NetWorker

Products

NetWorker Family
Article Properties
Article Number: 000297934
Article Type: Solution
Last Modified: 05 Mar 2026
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.