NetWorker: java.io.IOException: Geçersiz anahtar deposu biçimi
Summary: NetWorker AUTHC veya NetWorker Web Kullanıcı Arayüzü (NWUI) anahtar deposu dosyaları java keytool kullanılarak listelenemiyor veya değiştirilemiyor.
Symptoms
NetWorker Kimlik Doğrulama (AUTHC) sunucusu veya NetWorker Web Kullanıcı Arayüzü (NWUI) sunucusu, Java Runtime Environment ı (JRE) içerir. Bu işlem genellikle NetWorker Çalışma Zamanı Ortamı (NRE) kullanılarak kolaylaştırılır.
Linux: /opt/nre/java/latest
Windows: C:\Program Files\NRE\java\jre#.#.#_###
Kullanırken keytool NetWorker authc/NWUI anahtar deposu dosyalarını gözden geçirme komutunu verdiğinde bir java hatası görüntülenir:
[root@nsr bin]# keytool -list -keystore /nsr/authc/conf/authc.keystore Enter keystore password: keytool error: java.io.IOException: Invalid keystore format
Bu hata, çalışırken bile görünüyor. keytool komutunu doğrudan NRE java bin dizininden edinebilirsiniz.
NetWorker sunucusu anahtar deposu dosyaları:
-
/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
Ana bilgisayarda Oracle Java Runtime Environment ın (JRE) başka bir sürümü yüklü. Oracle JRE yüklemesi NRE'yi engelliyor.
Resolution
NetWorker uygulamalarıyla NetWorker Çalışma Zamanı Ortamının (NRE) kullanılması önerilir. NetWorker sunucusunun AUTHC kurulum günlüğünde hangi "Java Yolunun" kullanıldığı tanımlanır:
/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_471Alternatif olarak, bir Yönetici komut isteminden şu komutu çalıştırın:
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
Zorlamak için bir komut satırı değişkeni kullanın keytool NRE'den kullanım:
Linux:
keytool=/opt/nre/java/latest/bin/keytool
Örneğin:
[root@nsr ~]# keytool=/opt/nre/java/latest/bin/keytool
Şu değişkeni kullanarak tüm keytool komutlarını çalıştırın:
[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:
Video (Video) öğesini vurgulamak için NSR_JAVA_HOME NRE'den komutları çalıştırmak için bin Dizin.
Komut İstemi Örneği:
"%NSR_JAVA_HOME%\bin\keytool.exe" OPTIONS
PowerShell Örneği:
& "$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, NetWorker Çalışma Zamanı Ortamını (NRE) kullanıyorsa ve başka bir Oracle Java Çalışma Zamanı Ortamı (JRE) kuruluysa Oracle JRE paketini kaldırın.
Linux:
- Başka bir JRE yüklemesi olup olmadığını kontrol edin; aşağıdaki komutlar kullanılabilir; ancak, Linux sistem yöneticinize danışın:
rpm -qa --last | grep jre find / -name java -type f
/etc/alternatives /usr/bin/java /usr/lib/jreX
- Başka bir JRE paketi kuruluysa, kaldırılıp kaldırılamayacağı konusunda Linux Sistem Yöneticisine danışın.
rpm -e package_name
Windows:
- Windows Denetim Masası -> Programlar ve Özellikler'i açın.
- Oracle Java Runtime Environment paketinin listesini gözden geçirin (NetWorker Runtime Environment hariç).
- Oracle Java Runtime Environment yüklüyse kaldırılıp kaldırılamayacağı konusunda Windows Sistem Yöneticisine danışın.
- Oracle Java Runtime Environment ı sistemden kaldırın.
- Oracle JRE kaldırıldıktan sonra keytool komutlarını çalıştırmak için yeni bir komut istemi oturumu açın.
Additional Information
- NetWorker: NMC ve NWUI Tarafından Kullanılan Kimlik Doğrulama Sunucusunun Hangi Sunucu Olduğunu Belirleme
- NetWorker: LDAPS Kimlik Doğrulaması Yapılandırma
- NetWorker: "AUTHC" ve "NWUI" için Sertifika Yetkilisi İmzalı Sertifikaları İçe Aktarma veya Değiştirme (Linux)
- NetWorker: "AUTHC" ve "NWUI" için Sertifika Yetkilisi İmzalı Sertifikaları İçe Aktarma veya Değiştirme (Windows)