DPSearch — usługa NGINX nie uruchamia się po zainstalowaniu nowego certyfikatu SSL.
Summary: DPSearch: Usługa NGINX nie uruchamia się z błędem hasła po zainstalowaniu nowego certyfikatu Secure Socket Layer (SSL).
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
Po zainstalowaniu nowego certyfikatu SSL usługa NGINX nie uruchamia się i generuje komunikaty o błędach podobne do przedstawionych poniżej:
Feb 08 06:45:07 hostname systemd[1]: Starting LSB: nginx... Feb 08 06:45:07 hostname nginx[6873]: Starting nginx Enter PEM pass phrase: Feb 08 06:45:07 hostname nginx[6873]: nginx: [emerg] cannot load certificate key "/usr/local/search/etc/cert/server.key": PEM_read_bio_PrivateKey() failed (SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting password error:0907B068:PEM routines:PEM_READ_BIO_PRIVATEKEY:bad password read) Feb 08 06:45:07 hostname startproc[6879]: startproc: exit status of parent of /usr/local/nginx/sbin/nginx: 1 Feb 08 06:45:07 hostname nginx[6873]: ..failed Feb 08 06:45:07 hostname systemd[1]: nginx.service: Control process exited, code=exited status=7 Feb 08 06:45:07 hostname systemd[1]: Failed to start LSB: nginx. Feb 08 06:45:07 hostname systemd[1]: nginx.service: Unit entered failed state. Feb 08 06:45:07 hostname systemd[1]: nginx.service: Failed with result 'exit-code'.
Cause
Klucz prywatny ma wymaganie dotyczące hasła, ale NGINX nie jest skonfigurowany do używania haseł.
Resolution
Poniższe kroki tworzą plik klucza prywatnego bez wymogu hasła:
- Zmień nazwę istniejącego pliku server.key na server_pass.key.
mv server.key server_pass.key
- Utwórz nowy klucz bez wymogu hasła. Zakłada się, że klucz RSA jest w użyciu, w przeciwnym razie odpowiednio dostosuj polecenie. Po wyświetleniu monitu wpisz hasło i naciśnij Enter.
openssl rsa -in server_pass.key -out server.key
- Zatrzymaj i uruchom usługę NGINX i sprawdź, czy nie są wyświetlane żadne komunikaty o błędach:
service nginx stop service nginx start service nginx status
- Przejdź do strony głównej wyszukiwania. Sprawdź, czy wyświetlane są poprawne informacje o certyfikacie SSL.
Affected Products
Data Protection Search, Data Protection SearchArticle Properties
Article Number: 000208401
Article Type: Solution
Last Modified: 22 Aug 2025
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.