Skip to main content
SnapCenter software
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

在 Linux 主機上設定雙向 SSL 通信

您應該配置雙向 SSL 通訊以保護 Linux 主機上的SnapCenter伺服器與插件之間的相互通訊。

開始之前
  • 您應該已經為 Linux 主機設定了 CA 憑證。

  • 您必須在所有插件主機和SnapCenter伺服器上啟用雙向 SSL 通訊。

步驟
  1. certificate.pem 複製到 /etc/pki/ca-trust/source/anchors/

  2. 將憑證新增到 Linux 主機的信任清單中。

    • cp root-ca.pem /etc/pki/ca-trust/source/anchors/

    • cp certificate.pem /etc/pki/ca-trust/source/anchors/

    • update-ca-trust extract

  3. 驗證證書是否已新增至信任清單。 trust list | grep "<CN of your certificate>"

  4. 更新SnapCenter nginx 檔案中的 ssl_certificatessl_certificate_key 並重新啟動。

    • vim /etc/nginx/conf.d/snapcenter.conf

    • systemctl restart nginx

  5. 刷新SnapCenter伺服器 GUI 連結。

  6. 更新位於 _ /<安裝路徑>/ NetApp /snapcenter/SnapManagerWeb_ 的 * SnapManager .Web.UI.dll.config* 和位於 /<安裝路徑>/ NetApp/snapcenter/SMCoreSMCoreServiceHost.dll.config 中的下列登錄項目的值。

    • <add key="SERVICE_CERTIFICATE_PATH" value="<證書.pfx 的路徑>" />

    • <新增鍵=“SERVICE_CERTIFICATE_PASSWORD”值=“<密碼>”/>

  7. 重新啟動以下服務。

    • systemctl restart smcore.service

    • systemctl restart snapmanagerweb.service

  8. 驗證憑證是否已附加至SnapManager Web 連接埠。 openssl s_client -connect localhost:8146 -brief

  9. 驗證憑證是否已附加到 smcore 連接埠。 openssl s_client -connect localhost:8145 -brief

  10. 管理 SPL 金鑰庫和別名的密碼。

    1. 檢索指派給 SPL 屬性檔案中的 SPL_KEYSTORE_PASS 鍵的 SPL 金鑰庫預設密碼。

    2. 更改密鑰庫密碼。 keytool -storepasswd -keystore keystore.jks

    3. 更改所有私鑰條目別名的密碼。 keytool -keypasswd -alias "<alias_name>" -keystore keystore.jks

    4. spl.properties 中的金鑰 SPL_KEYSTORE_PASS 更新相同的密碼。

    5. 重新啟動服務。

  11. 在插件 Linux 主機上,在 SPL 插件的金鑰庫中新增根憑證和中間憑證。

    • keytool -import -trustcacerts -alias <any preferred alias name> -file <path of root-ca.pem> -keystore <path of keystore.jks mentioned in spl.properties file>

    • keytool -importkeystore -srckeystore <path of certificate.pfx> -srcstoretype pkcs12 -destkeystore <path of keystore.jks mentioned in spl.properties file> -deststoretype JKS

      1. 檢查 keystore.jks 中的條目。 keytool -list -v -keystore <path to keystore.jks>

      2. 如果需要,請重新命名任何別名。 keytool -changealias -alias "old-alias" -destalias "new-alias" -keypass keypass -keystore </path/to/keystore> -storepass storepas

  12. 使用儲存在 keystore.jks 中的 certificate.pfx 的別名更新 spl.properties 檔案中的 SPL_CERTIFICATE_ALIAS 的值,然後重新啟動 SPL 服務: systemctl restart spl

  13. 驗證憑證是否已附加到 smcore 連接埠。 openssl s_client -connect localhost:8145 -brief