Verkkotyöntekijä: java.io.IOException: Virheellinen avainsäilön muoto

Résumé: NetWorker AUTHC- tai NetWorker Web User Interface (NWUI) -avainsäilötiedostoja ei voi luetteloida tai muokata java keytoolilla.

Cet article concerne Cet article ne concerne pas Cet article n’est associé à aucun produit spécifique. Toutes les versions du produit ne sont pas identifiées dans cet article.

Symptômes

NetWorker Authentication (AUTHC) -palvelimeen tai NetWorker Web User Interface (NWUI) -palvelimeen sisältyy Java Runtime Environment (JRE). Yleensä tätä helpotetaan NetWorker Runtime Environment (NRE) -ympäristön avulla.

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

HUOMAUTUS: Windows-isännissä ei ole "viimeisintä" symbolista linkkiä. Asennetun NRE-version mukaan JRE-polku sisältää NRE-versioon sisältyvän JRE-version.

Kun käytät keytool NetWorker authc/NWUI -avainsäilötiedostojen tarkistuskomento, näyttöön tulee Java-virhe:

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

Tämä virhe ilmenee, vaikka suoritat keytool -komento suoraan NRE java bin -hakemistosta.

NetWorker Serverin avainsäilötiedostot:

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 Web User Interface (NWUI) -tiedostot:
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

Isäntään on asennettu toinen Oracle Java Runtime Environment (JRE) -versio. Oracle JRE -asennus häiritsee NRE:tä.

Résolution

NetWorker-sovellusten kanssa suositellaan käytettäväksi NetWorker Runtime Environment (NRE) -ympäristöä. NetWorker-palvelimen AUTHC-asennuslokista käy ilmi, mitä Java-polkua käytettiin:

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
Vaihtoehtoisesti järjestelmänvalvojan komentokehotteessa:
echo %NSR_JAVA_HOME%
Voit myös hallita PowerShell-kehotetta:
$env:NSR_JAVA_HOME
Esimerkki:
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


Pakota komentorivimuuttujalla keytool käyttö NRE:ltä:

HUOMAUTUS: Nämä muuttujat koskevat vain nykyistä liittymää tai kehotetta. Kun istunto on suljettu, ne tyhjennetään.

Linux:

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

Esimerkki:

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

Suorita kaikki avaintyökalun komennot muuttujan avulla:

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

Korosta NSR_JAVA_HOME suorittaa komentoja NRE:stä bin Hakemisto.

Esimerkki komentokehotteesta:

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

PowerShell-esimerkki:

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

 

Jos NetWorker käyttää NetWorker Runtime Environment (NRE) -ympäristöä ja toinen Oracle Java Runtime Environment (JRE) on asennettu, poista Oracle JRE -paketti.

Linux:

VAROITUS: Jos palvelin on NetWorker Virtual Edition (NVE), älä poista Oracle JRE -pakettia.
  1. Tarkista toinen JRE-asennus, seuraavia komentoja voidaan käyttää; Ota kuitenkin yhteyttä Linux-järjestelmänvalvojaan:
rpm -qa --last | grep jre
find / -name java -type f
/opt/nre/java/jreX on NetWorkerin suorituksenaikainen ympäristö. Muita paketteja voi kuitenkin näkyä:
/etc/alternatives
/usr/bin/java
/usr/lib/jreX
  1. Jos asennettuna on toinen JRE-paketti, kysy Linux-järjestelmänvalvojalta, voiko sen poistaa.
rpm -e package_name

Windows: 

  1. Avaa Windowsin Ohjauspaneeli -> Ohjelmat ja toiminnot.
  2. Tarkista luettelo Oracle Java Runtime Environment -paketin osalta (NetWorker Runtime Environmentia lukuun ottamatta).
  3. Jos Oracle Java Runtime Environment on asennettu, kysy Windowsin järjestelmänvalvojalta, voiko sen poistaa.
  4. Poista Oracle Java Runtime Environment -ympäristön asennus järjestelmästä.
  5. Avaa uusi komentokehoteistunto ja suorita keytool-komennot, kun Oracle JRE on poistettu.

Informations supplémentaires

Produits concernés

NetWorker

Produits

NetWorker Family
Propriétés de l’article
Numéro d’article: 000297934
Type d’article: Solution
Dernière modification: 05 Mar 2026
Version:  4
Trouvez des réponses à vos questions auprès d’autres utilisateurs Dell
Services de support
Vérifiez si votre appareil est couvert par les services de support.