Cisco DCNM:如何在安装后在 Linux 服务器上启用 HTTPS

Summary: 安装后如何在 Linux 主机上启用 HTTPS。

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.

Instructions

为 Cisco Prime DCNM 配置证书:
必须决定如何配置 SSL 证书,有以下几个选项:

  • 使用自签名 SSL 证书
  • 使用 OpenSSL 生成证书请求时使用 SSL 证书
  • 使用 Keytool 生成证书请求时使用 SSL 证书

在本知识库文章中,我们使用自签名 SSL 证书:
使用自签名 SSL 证书。

第 1
步从命令提示符浏览到以下内容:
<DCNM install root>/dcm/java/jre1.7/bin/

步骤 2
重命名位于以下位置的密钥库:
<DCNM_install_root>\dcm\jboss-as-7.2.0.Final\standalone\configuration\fmserver.jks
重定向到
<DCNM_install_root>\dcm\jboss-as-7.2.0.Final\standalone\configuration\fmserver.jks.old

步骤 3
使用以下命令生成自签名证书。

keytool -genkey -trustcacerts -keyalg RSA -alias sme -keystore
<DCNM_install_root>\dcm\jboss-as-7.2.0.Final\standalone\configuration\fmserver.jks -storepass
fmserver_1_2_3 -validity 360 -keysize 2048

此示例中使用的实际语法:

keytool -genkey -trustcacerts -keyalg RSA -alias sme -keystore /usr/local/cisco/dcm/jboss-as-7.2.0.Final/standalone/configuration/fmserver.jks -storepass fmserver_1_2_3
-validity 360 -keysize 2048

步骤 4
使用以下命令停止 DCNM 服务或 DCNM 应用程序。

appmgr stop dcnm

步骤 5
使用以下命令启动服务器中的 DCNM 服务或 DCNM 应用程序。

appmgr start dcnm

重新配置 DCNM Web 端口:
执行以下步骤以重新配置 DCNM Web 端口。

步骤1:
使用“appmgr stop dcnm”停止 DCNM 服务器。
对于 DCNM 7.2.3,也要停止 LAN 和 SMIS 组件(如果它们正在使用以下命令):

appmgr stop dcnm
appmgr stop dcnm-lan
appmgr stop dcnm-smis

步骤 2
要配置 DCNM Web 端口,请使用以下命令。

appmgr update dcnm -h true|false

-h true:在 https(默认 443)端口上启动 DCNM Web UI。
-h false:在 http(80) 端口上启动 DCNM Web UI。

步骤 3
启动 DCNM 服务器。
对于 DCNM 7.2.3,还要使用以下命令启动 LAN 和 SMIS 组件(如果它们正在使用):

appmgr start dcnm
appmgr start dcnm-lan
appmgr start dcnm-smis

验证 DCNM 服务器是在侦听端口 80 (HTTP) 还是 443 (HTTPS)

# netstat -ant | grep 80
# netstat -ant | grep 443

 

Affected Products

Red Hat Enterprise Linux Version 5, Red Hat Enterprise Linux Version 6, Red Hat Enterprise Linux Version 7, Red Hat Enterprise Linux Version 9, Red Hat Enterprise Linux Version 8
Article Properties
Article Number: 000018931
Article Type: How To
Last Modified: 02 Sep 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.