DPSearch - 安裝新的 SSL 憑證後,NGINX 服務無法啟動。

Summary: DPSearch:安裝新的安全套接字層 (SSL) 憑證後,NGINX 服務無法啟動,並出現密碼錯誤。

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

安裝新的 SSL 證書後,NGINX 服務無法啟動並生成類似於以下內容的錯誤訊息:

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

私鑰具有密碼短語要求,但 NGINX 未配置為使用密碼短語。 

Resolution

下列步驟建立沒有密碼片語要求的私人金鑰檔案:

  1. 將現有的server.key檔名重命名為server_pass.key。
    mv server.key server_pass.key
 
 
  1. 建立無密碼片語要求的新金鑰。假定 RSA 金鑰正在使用中,否則請相應地調整命令。出現提示時,請輸入密碼片語,然後按下 Enter 鍵。
    openssl rsa -in server_pass.key -out server.key
 
  1. 停止並啟動 NGINX 服務,並檢查是否未顯示任何錯誤訊息:
    service nginx stop
    service nginx start
    service nginx status
 
  1. 前往搜尋首頁。檢查是否顯示正確的 SSL 憑證資訊。
 

Affected Products

Data Protection Search, Data Protection Search
Article 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.