NetWorker: "AUTHC" ve "NWUI" için Sertifika Yetkilisi İmzalı Sertifikaları İçe Aktarma veya Değiştirme (Linux)
Summary: Bunlar, varsayılan NetWorker kendinden imzalı sertifikasını "AUTHC" ve NetWorker Web UI (NWUI) hizmetleri için Sertifika Yetkilisi (CA) imzalı bir sertifikayla değiştirmeye yönelik genel adımlardır. ...
Instructions
Bu talimatlarda, NetWorker sunucusundaki NetWorker kimlik doğrulaması (AUTHC) ve NetWorker Web UI (NWUI) hizmetleri için varsayılan NetWorker kendinden imzalı sertifikasının CA tarafından imzalanmış bir sertifikayla nasıl değiştirileceği açıklanmaktadır.
Dosya adlarının adlandırma gereksinimi yoktur ancak dosya türü için uzantılar referans alınmalıdır. Gösterilen komut örnekleri Linux içindir. Windows talimatları için bkz.:
NetWorker: "AUTHC" ve "NWUI" için Sertifika Yetkilisi İmzalı Sertifikaları İçe Aktarma veya Değiştirme (Windows)
İlgili sertifika dosyaları:
<server>.csr: NetWorker server certificate signing request <server>.key: NetWorker server private key <server>.crt: NetWorker server CA-signed certificate <CA>.crt: CA root certificate <ICA>.crt: CA intermediate certificate (optional if it is available)
İlgili anahtar depoları:
authc.keystore authc.truststore cacerts nwui.keystore
Sertifika Yetkilinize sağlamak için bir özel anahtar ve sertifika imzalama isteği (CSR) dosyası oluşturun.
-
NetWorker sunucusu özel anahtar dosyasını oluşturmak için OpenSSL komut satırı yardımcı programını kullanın (
<server>.key) ve CSR dosyası (<server>.csr).# openssl req -new -newkey rsa:4096 -nodes -out /tmp/<server>.csr -keyout /tmp/<server>.key
-
CSR dosyasını (
<server>.csr) CA imzalı sertifika dosyasını oluşturmak için CA'ya (<server>.crt). CA, CA tarafından imzalanmış sertifika dosyasını (<server>.crt), kök sertifika (<CA>.crt) ve ara CA sertifikaları (<ICA>.crt).
Ön doğrulama adımları:
Aşağıdakilere sahip olduğunuzdan emin olun:
- İlk satırı -----BEGIN CERTIFICATE----- ve son satırı -----END CERTIFICATE olan bir PEM sertifikası içeren server.crt dosyası-----
- Anahtar dosyası -----BEGIN RSA PRIVATE KEY----- ile başlar ve -----END RSA PRIVATE KEY ile biter-----
- Aşağıdaki komutu çalıştırarak tüm sertifikaların geçerli PEM biçimli dosyalar olduğunu onaylayın:
openssl x509 -in <cert> -text -noout. - Doğru sertifika olduğundan emin olmak için yukarıdaki çıktıyı doğrulayın.
- Aşağıdaki iki komutun çıktılarını kontrol edin:
openssl rsa -pubout -in server.key
openssl x509 -pubkey -noout -in server.crt
Bu iki komutun çıktısı eşleşmelidir.
Aşağıda açıklanan adımları ve komutları uygulayabilmek için şu değişkenleri oluşturuyoruz:
java_bin=/opt/nre/java/latest/bin nsr=<path to /nsr partition> # In case of NVE for instance this is /data01/nsr cert=<path to server crt file> key=<path to server key file> RCAcert=<path to Root CA file> ICAcert=<path to intermediate CA crt file>
Birden fazla ara sertifika varsa her sertifika için değişkenler oluşturun: ICA1, ICA2 vb
. Doğru NetWorker anahtar deposu parolalarını bilmeniz gerekir. Bu parolalar AUTHC ve NWUI yapılandırması sırasında ayarlanır. Emin değilseniz bkz.:
Anahtar deposu geçiş değişkenlerinizi de kullanabilir (1. seçenek) veya parolayı gizli tutmak için bunları bir dosyada saklayabilirsiniz (2. seçenek):
Seçenek 1 için örnek:
authc_storepass='P4ssw0rd!' nwui_storepass='Password1!'
2. seçeneğe örnek:
authc_storepass=$(cat authc_storepass_file.txt) nwui_storepass=$(cat nwui_storepass_file.txt)
Başlamadan önce:
Java cacerts dosyasının yedek bir kopyasını oluşturun.
cp -p /opt/nre/java/latest/lib/security/cacerts /tmp/cacerts_$(date -I).bkp
Auth Service Sertifikası Değiştirme Adımları:
Komutta authc Aşağıdaki prosedürün çalışması için hizmetin durdurulması gerekmez. Ancak yeni sertifikaların yüklenmesi için yeniden başlatılması gerekir.
-
Sertifikaları içe aktarma
-
Kök sertifikayı (
<CA>.crt) ve ara CA sertifikaları (<ICA>.crt) içineauthc.keystore.$java_bin/keytool -import -alias RCA -keystore $nsr/authc/conf/authc.keystore -file $RCAcert -storepass $authc_storepass $java_bin/keytool -import -alias RCA -keystore /opt/nsr/authc-server/conf/authc.truststore -file $RCAcert -storepass $authc_storepass $java_bin/keytool -import -alias ICA -keystore $nsr/authc/conf/authc.keystore -file $ICAcert -storepass $authc_storepass $java_bin/keytool -import -alias ICA -keystore /opt/nsr/authc-server/conf/authc.truststore -file $ICAcert -storepass $authc_storepass
-
NetWorker Sunucusu özel anahtar dosyasını (
<server>.key) ve CA imzalı yeni sertifika dosyası (<server>.crt) için bir PKCS12 depolama dosyası oluşturmak içinemcauthctomcatveemcauthcsamltakma ad.openssl pkcs12 -export -in $cert -inkey $key -name emcauthctomcat -out /tmp/$hostname.tomcat.authc.p12 -password pass:$authc_storepass openssl pkcs12 -export -in $cert -inkey $key -name emcauthcsaml -out /tmp/$hostname.saml.authc.p12 -password pass:$authc_storepass
NOT: pkcs12 dosya parolası, anahtar deposunun parolasıyla eşleşmek zorundadır. Bu nedenle, bu durumda, onuauthcmağaza geçişi. -
PKCS12 depo dosyalarını
authc.keystore.$java_bin/keytool -importkeystore -destkeystore /nsr/authc/conf/authc.keystore -srckeystore /tmp/$hostname.tomcat.authc.p12 -srcstoretype PKCS12 -srcstorepass $authc_storepass -deststorepass $authc_storepass $java_bin/keytool -importkeystore -destkeystore /nsr/authc/conf/authc.keystore -srckeystore /tmp/$hostname.saml.authc.p12 -srcstoretype PKCS12 -srcstorepass $authc_storepass -deststorepass $authc_storepass
-
PKCS12 depo dosyalarını
authc.truststore.$java_bin/keytool -importkeystore -destkeystore /opt/nsr/authc-server/conf/authc.truststore -srckeystore /tmp/$hostname.tomcat.authc.p12 -srcstoretype PKCS12 -srcstorepass $authc_storepass -deststorepass $authc_storepass $java_bin/keytool -importkeystore -destkeystore /opt/nsr/authc-server/conf/authc.truststore -srckeystore /tmp/$hostname.saml.authc.p12 -srcstoretype PKCS12 -srcstorepass $authc_storepass -deststorepass $authc_storepass
-
Varsayılan NetWorker kendinden imzalı sertifikasını silin ve yeni CA imzalı sertifika dosyasını içe aktarın (
<server>.crt) içineauthc.truststore.$java_bin/keytool -delete -alias emcauthctomcat -keystore /opt/nsr/authc-server/conf/authc.truststore -storepass $authc_storepass $java_bin/keytool -import -alias emcauthctomcat -keystore /opt/nsr/authc-server/conf/authc.truststore -file $cert -storepass $authc_storepass $java_bin/keytool -delete -alias emcauthcsaml -keystore /opt/nsr/authc-server/conf/authc.truststore -storepass $authc_storepass $java_bin/keytool -import -alias emcauthcsaml -keystore /opt/nsr/authc-server/conf/authc.truststore -file $cert -storepass $authc_storepass
-
Son olarak bu sertifikayı şu adresteki Java cacerts anahtar deposu dosyasına aktarın:
emcauthctomcatTakma ad:$java_bin/keytool -delete -alias emcauthctomcat -keystore $java_bin/../lib/security/cacerts -storepass changeit $java_bin/keytool -import -alias emcauthctomcat -keystore $java_bin/../lib/security/cacerts -file $cert -storepass changeit
NOT: NetWorker 19.13 (veya üzeri) sürümünü kullanıyorsanız,keytoolKomutlar içe aktarma sırasında bir uyarı döndürebilircacertsSertifika. Uyarının kullanılacağını belirtir-cacertsAşağıdakinin yerine-keystore. Uyarıya rağmen bu hata güvenle göz ardı edilebilir. Bu makalede gösterilen söz dizimi sertifikaları yine de içe aktarır. Alternatif, "-keystore $java_bin/../lib/security/cacerts" ile "-cacerts" komutlarında; Bu işlem, uyarıyı kaldırır.
-
-
Şunu düzenleyin:
admin_service_default_url=localhostiçindeki değerauthc-cli-app.propertiesCA tarafından imzalanmış sertifika dosyasında kullanılan NetWorker Sunucusu adını yansıtacak dosya:cat /opt/nsr/authc-server/conf/authc-cli-app.properties admin_service_default_protocol=https admin_service_default_url=<my-networker-server.my-domain.com> admin_service_default_port=9090 admin_service_default_user= admin_service_default_password= admin_service_default_tenant= admin_service_default_domain= - Şu durumlar için NetWorker hizmetlerinin yeniden başlatılması gerekir:
authcYeni içe aktarılan sertifikayı kullanmak için.
nsr_shutdown systemctl start networker
-
Yeniden Oluştur
authcNetWorker sunucusunda güven:nsrauthtrust -H <local host or Authentication_service_host> -P 9090
AUTHC doğrulama sonrası:
Her "Sertifika parmak izi" diğer anahtar deposunun çıktısıyla çakışır:
$java_bin/keytool -list -keystore $java_bin/../lib/security/cacerts -storepass changeit | grep emcauthctomcat -A1 $java_bin/keytool -list -keystore /opt/nsr/authc-server/conf/authc.truststore -storepass $authc_storepass | grep emcauthctomcat -A1 $java_bin/keytool -list -keystore $nsr/authc/conf/authc.keystore -storepass $authc_storepass | grep emcauthctomcat -A1
Çıktı şuna benzemelidir:
Certificate fingerprint (SHA-256): FD:54:B4:11:42:87:FF:CA:80:77:D2:C7:06:87:09:72:70:85:C1:70:39:32:A9:C0:14:83:D9:3A:29:AF:44:90
Bu parmak izi, yüklenen sertifikaya aittir. Bu, yeni sertifikanın farklı anahtar depolarına tanıtılmasının doğru bir şekilde yapıldığını gösterir.
openssl x509 -in $cert -fingerprint -sha256 -noout
Ne zaman authc Hizmet çalışır durumdaysa gelen bağlantıya sağladığı sertifikanın yukarıdakiyle aynı olup olmadığını kontrol edebilirsiniz:
openssl x509 -in <(openssl s_client -connect localhost:9090 -prexit 2>/dev/null </dev/null | sed -n -e '/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/ p') -fingerprint -sha256 -noout
Alternatif olarak, 9090 numaralı bağlantı noktası tarafından kullanılan sertifikanın konusunu ve verenini kontrol edebilirsiniz:
openssl s_client -connect localhost:9090 -showcerts 2>/dev/null </dev/null | grep -E "issuer|subject"
NetWorker Kullanıcı Arayüzü (nwui) Hizmet Belgesi Değiştirme Adımları:
Varsayıyoruz ki nwui hizmetleri NetWorker sunucusu üzerinde çalışmaktadır.
-
Durdurun
nwuiHizmetsystemctl stop nwui
-
Varsayılan NetWorker kendinden imzalı sertifikalarını silin ve yeni CA imzalı sertifika dosyasını içe aktarın (
<server>.crt) cacerts anahtar deposuna. Tutarlılık için hepsini değiştiriyoruznwui-CA imzalı sertifikaya sahip sertifikalar.- Aşağıdaki adımları gerçekleştirmeden önce NetWorker Runtime Environment (NRE) veya Java Runtime Environment (JRE) kullanıldığından emin olmak gerekir.
- JRE kullanılırsa /cacerts dosyasının yolu şu konumdadır:
$java_bin/../lib/security/cacerts. - NRE kullanılırsa /cacerts yolu şu şekildedir:
/opt/nre/java/latest/lib/security/cacerts.$java_bin/keytool -delete -alias emcnwuimonitoring -keystore $java_bin/../lib/security/cacerts -storepass changeit $java_bin/keytool -import -alias emcnwuimonitoring -keystore $java_bin/../lib/security/cacerts -file $cert -storepass changeit $java_bin/keytool -delete -alias emcnwuiserv -keystore $java_bin/../lib/security/cacerts -storepass changeit $java_bin/keytool -import -alias emcnwuiserv -keystore $java_bin/../lib/security/cacerts -file $cert -storepass changeit $java_bin/keytool -delete -alias emcnwuiauthc -keystore $java_bin/../lib/security/cacerts -storepass changeit $java_bin/keytool -import -alias emcnwuiauthc -keystore $java_bin/../lib/security/cacerts -file $cert -storepass changeit
NOT: NetWorker 19.13 (veya üzeri) sürümünü kullanıyorsanız,keytoolKomutlar içe aktarma sırasında bir uyarı döndürebilircacertsSertifika. Uyarının kullanılacağını belirtir-cacertsAşağıdakinin yerine-keystore. Uyarıya rağmen bu hata güvenle göz ardı edilebilir. Bu makalede gösterilen söz dizimi sertifikaları yine de içe aktarır. Alternatif, "-keystore $java_bin/../lib/security/cacerts" ile "-cacerts" komutlarında; Bu işlem, uyarıyı kaldırır.
-
NetWorker Sunucusu özel anahtar dosyasını (
<server>.key) ve CA imzalı yeni sertifika dosyası (<server>.crt) için bir PKCS12 depolama dosyası oluşturmak içinemcauthctomcatveemcauthcsamliçin diğer adnwuianahtar deposuna aktarın.openssl pkcs12 -export -in $cert -inkey $key -name emcauthctomcat -out /tmp/$hostname.tomcat.nwui.p12 -password pass:$nwui_storepass openssl pkcs12 -export -in $cert -inkey $key -name emcauthcsaml -out /tmp/$hostname.saml.nwui.p12 -password pass:$nwui_storepass
NOT: pkcs12 dosya parolası, anahtar deposunun parolasıyla eşleşmek zorundadır. Bu nedenle, bu durumda, onunwuimağaza geçişi. -
.p12 dosyalarını, kök CA sertifikasını ve ara CA sertifikalarını
nwuianahtar deposuna aktarın.$java_bin/keytool -importkeystore -destkeystore $nsr/nwui/monitoring/app/conf/nwui.keystore -srckeystore /tmp/$hostname.tomcat.nwui.p12 -srcstoretype PKCS12 -srcstorepass $nwui_storepass -deststorepass $nwui_storepass $java_bin/keytool -importkeystore -destkeystore $nsr/nwui/monitoring/app/conf/nwui.keystore -srckeystore /tmp/$hostname.saml.nwui.p12 -srcstoretype PKCS12 -srcstorepass $nwui_storepass -deststorepass $nwui_storepass $java_bin/keytool -import -alias RCA -keystore $nsr/nwui/monitoring/app/conf/nwui.keystore -file $RCAcert -storepass $nwui_storepass $java_bin/keytool -import -alias ICA -keystore $nsr/nwui/monitoring/app/conf/nwui.keystore -file $ICAcert -storepass $nwui_storepass
-
Şunu yeniden adlandırın:
emcnwuimonitoring,emcnwuiauthcveemcnwuiservsertifikalarını ekleyip sunucu sertifikamızı aynı adla bu yola koyun. Orijinal dosyaların üzerine yazmanız istenir (bu, mevcut sahipliği ve izinleri korur)cp -p /nsr/nwui/monitoring/app/conf/emcnwuimonitoring.cer /nsr/nwui/monitoring/app/conf/emcnwuimonitoring.cer_orig cp $cert /nsr/nwui/monitoring/app/conf/emcnwuimonitoring.cer mv -p /opt/nwui/conf/emcnwuiauthc.cer /opt/nwui/conf/emcnwuiauthc.cer_orig cp $cert /opt/nwui/conf/emcnwuiauthc.cer cp -p /opt/nwui/conf/emcnwuiserv.cer /opt/nwui/conf/emcnwuiserv.cer_orig cp $cert /opt/nwui/conf/emcnwuiserv.cer
NOT: Orijinal dosyaların üzerine yazmanız istenir (bu, mevcut sahipliği ve izinleri korur) -
nwuiPostgreSQL Sertifika Değiştirme Adımlarıcp -p $nsr/nwui/monitoring/nwuidb/pgdata/server.crt /nsr/nwui/monitoring/nwuidb/pgdata/server.crt_orig cp -p $nsr/nwui/monitoring/nwuidb/pgdata/server.key /nsr/nwui/monitoring/nwuidb/pgdata/server.key_orig cp $cert $nsr/nwui/monitoring/nwuidb/pgdata/server.crt cp $key $nsr/nwui/monitoring/nwuidb/pgdata/server.key
NOT: Orijinal dosyaların üzerine yazmanız istenir (bu, mevcut sahipliği ve izinleri korur) -
Başlat
nwuiHizmetlerisystemctl start nwui
nwui Doğrulama sonrası:
Her "Sertifika parmak izi" diğer anahtar deposunun çıktısıyla çakışır:
$java_bin/keytool -list -keystore $nsr/nwui/monitoring/app/conf/nwui.keystore -storepass $nwui_storepass | grep emcauthctomcat -A1 $java_bin/keytool -list -keystore $java_bin/../lib/security/cacerts -storepass changeit | grep emcauthctomcat -A1 $java_bin/keytool -list -storepass $authc_storepass -keystore $nsr/authc/conf/authc.keystore | grep emcauthctomcat -A1
Bu parmak izi, yüklenen sertifikaya aittir. Bu, yeni sertifikanın farklı anahtar depolarına tanıtılmasının doğru bir şekilde yapıldığını gösterir.
openssl x509 -in $cert -fingerprint -sha256 -noout
Alternatif olarak, 9090 numaralı bağlantı noktası tarafından kullanılan sertifikanın konusunu ve verenini kontrol edebilirsiniz:
openssl s_client -connect localhost:9095 -showcerts 2>/dev/null </dev/null | grep -E "issuer|subject"
NetWorker Management Console:
Bu konu makalede ele alınmıştır: NetWorker: NMC İçin Sertifika Yetkilisi İmzalı Sertifikaları İçe Aktarma veya Değiştirme
NetWorker HTTP Strict Transport Security (HSTS):
NetWorker: NetWorker Apache Tomcat sunucusunda HSTS yapılandırmasını etkinleştirme
Additional Information
Aşağıdaki talimatlar geri dönmek için kullanılabilir: cacerts Bu makaleyi izlemeden önce oluşturulan dosya kopyası. Aşağıdaki işlem ayrıca NetWorker'ı AUTHC ve NWUI için varsayılan kendinden imzalı sertifikaları kullanacak şekilde sıfırlar.
- Yedek bir kopyaya sahip olduğunuzu onaylayın. Başlamadan önce komutu kullanıldıysa Java'nın eski tarihli bir kopyasına sahip olmanız gerekir.
cacertssunucusundaki dosya/tmpdizini. Örneğin:
[root@nsr ~]# ls -l /tmp | grep cacerts
-rwxr-xr-x. 1 root root 129266 Mar 23 14:44 cacerts_2026-03-23.bkp
- NetWorker hizmetlerini durdurun:
systemctl stop nwui nsr_shutdown
- NetWorker hizmetlerinin çalışmadığını doğrulayın:
systemctl status networker systemctl status nwui
- Cacerts dosyalarını orijinal konumlarına geri kopyalayın:
rsync Kullanım. Bu, varsayılan sahiplik ve izinlerin korunmasını sağlarken mevcut dosyaların üzerine yazmak için kullanılır.
rsync -a --no-perms --no-owner --no-group /tmp/cacerts_<date>.bkp /opt/nre/java/latest/lib/security/cacerts
- Tekrar çalıştırın
authc_configure.shkomut dosyasını açın ve yeni bir anahtar deposu oluşturma seçeneğini belirtin. Örneğin:
[root@nsr ~]# /opt/nsr/authc-server/scripts/authc_configure.sh
Specify the directory where the Java Standard Edition Runtime Environment (JRE) software is installed [/opt/nre/java/latest]:
The installation process will install an Apache Tomcat instance.
For optimum security, EMC NetWorker Authentication Service will
use a non-root user (nsrtomcat) to start the Apache Tomcat instance.
If your system has special user security requirements, ensure that proper
operational permissions are granted to this non-root user (nsrtomcat).
Please refer to NetWorker Installation Guide.
The Apache Tomcat will use "nsr.amer.lan" as the host name.
The Apache Tomcat will use "9090" as the port number.
The NetWorker Authentication Service requires a keystore file to configure encryption and to provide SSL support.
EMC recommends that you specify a keystore password that has a minimum of six characters.
Do you want to use the existing keystore /nsr/authc/conf/authc.keystore [y]? n
The installation process will create a new keystore file.
Specify the keystore password: HIDDEN_PASSWORD
Confirm the password: HIDDEN_PASSWORD
Creating the installation log in /opt/nsr/authc-server/logs/install.log.
Performing initialization. Please wait...
The installation completed successfully.
- NetWorker sunucu hizmetlerini başlatın:
systemct start networker
- Video (Video) öğesini vurgulamak için
nwui_configure.shkomut dosyasını açın ve yeni bir anahtar deposu oluşturma seçeneğini belirtin. Örneğin:
[root@nsr ~]# mv /nsr/nwui /nsr/nwui_$(date -I).bak
[root@nsr ~]# /opt/nwui/scripts/nwui_configure.sh Specify the directory where the Java Standard Edition Runtime Environment (JRE) software is installed [/opt/nre/java/latest]: Specify the host name of the NetWorker Authentication Service host [nsr.amer.lan]: Specify the host name of the NetWorker Server to be Managed by NWUI [nsr.amer.lan]: Specify the AUTHC port for Networker Server which is managed by NWUI [9090]: The NetWorker Web UI Server requires a keystore file to configure encryption and to provide SSL support. EMC recommends that you specify a password that has a minimum of nine characters, with at least one upper case letter, one lower case letter, one number and one special character. The installation process will create a new keystore file. Specify the keystore password: HIDDEN_PASSWORD Confirm the password: HIDDEN_PASSWORD
nwui_configure.sh komut dosyası, bağlantı noktası 9090'daki AUTHC sunucusuna ulaşamadığını bildirebilir. Varsayılan bağlantı noktasının (9090) kullanıldığını varsayarak, birkaç dakika bekleyin veya çalıştırın. nwui_configure.sh 9090 numaralı bağlantı noktası dinleme olarak göründükten sonra: netstat -apno | grep :9090.
- NWUI hizmetini başlatın:
systemctl start nwui
- Hizmetlerin başlatıldığını doğrulayın:
systemctl status networker systemctl status nwui
Sunucu, Networker'ın varsayılan olarak dağıttığı varsayılan kendinden imzalı sertifikalarla çalışıyor olmalıdır.