跳转到主内容

分类自签名证书已过期

Views:
175
Visibility:
Public
Votes:
0
Category:
netapp_console
Specialty:
ds_dc
Last Updated:

适用于

  • NetApp Console
  • 数据分类

问题

  • X.509 服务器证书在 Classification 服务器上无效/过期
  • 以下命令显示 SSL 证书在 Classification 服务器上过期:
cd opt/netapp/Datasense
curl -s -v -k  https://localhost 2>&1  | grep 'expire date'
* Server certificate:
* subject: C=US; ST=NY; O=Company; CN=datasense; OU=Company; emailAddress=xxx@company.com
* start date: Jul 10 xx:xx:xx 2024 GMT
* expire date: Jul 10 xx:xx:xx 2025 GMT
* issuer: C=US; ST=NY; O=Company; CN=datasense; OU=Company; emailAddress=xxx@company.com
* SSL certificate verify result: self-signed certificate (18), continuing anyway.

原因

  • Classification 服务器使用自签名 SSL 证书进行内部通信
  • 当此证书过期时,即使核心功能不受影响,也可能触发安全扫描程序警报

解决方案

在 nginx 容器中运行证书续订脚本以续订 Classification 自签名证书并确保使用新证书: 

  1. 检查过期日期
    • cd /opt/netapp/Datasense
    • curl -s -v -k  https://localhost 2>&1  | grep 'expire date'
  2. 生成新证书
    • docker-compose --log-level ERROR run --user root --no-deps --rm -w "/data" ds_apiserver /data/tools/generate_self_signed.sh
  3. 重新启动 nginx(此命令仅适用于 docker,对于 podman,命令不同)
    • docker service update --force `docker service ls | grep nginx | grep -v proxy | awk '{print $2}'`
  4. 再次检查到期日期
    • cd /opt/netapp/Datasense
    • curl -s -v -k  https://localhost 2>&1  | grep 'expire date'
  5. 如果证书未更新,请重新启动 Classification 服务器 

合作伙伴备注

合作伙伴备注文本
 

追加信息

追加信息文本

内部参考

内部参考文本

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.