码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 【vSphere 8 自签名证书】企业 CA 签名证书替换 vSphere Machine SSL 证书Ⅳ—— 替换默认证书


    目录

    • 博文摘要
      • 6. 使用企业 CA 签发的 SSL 证书 替换 vSphere 默认 SSL 证书
        • 6.1 确认证书文件
        • 6.2 替换默认 vSphere 证书
        • 6.3 验证自签名证书
        • 6.4 补充说明
    • 关联博文
    • 参考资料

    博文摘要

    博文主要描述了在 vCenter Server 8 上通过实用工具 certificate-manager 将 vSphere 默认 Machine SSL 证书替换为 企业 CA 自签名证书。适用的 vSphere 版本为 vSphere 7.0.x 和 vSphere 8.0.x

    6. 使用企业 CA 签发的 SSL 证书 替换 vSphere 默认 SSL 证书

    6.1 确认证书文件

    SSH 到 VCSA 中,cd 到 /root/machine_ssl 目录,此时该目录存在4个文件

    在这里插入图片描述

    需要用到的是

    • 自定义证书:machine_ssl.cer
    • 自定义密钥:vmca_issued_key.key
    • 签名证书:root-64.cer

    6.2 替换默认 vSphere 证书

    再次使用certificate-manager工具替换默认证书

    root@vc7-3 [ ~ ]# /usr/lib/vmware-vmca/bin/certificate-manager
                     _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
                    |                                                                     |
                    |      *** Welcome to the vSphere 8.0 Certificate Manager  ***        |
                    |                                                                     |
                    |                   -- Select Operation --                            |
                    |                                                                     |
                    |      1. Replace Machine SSL certificate with Custom Certificate     |
                    |                                                                     |
                    |      2. Replace VMCA Root certificate with Custom Signing           |
                    |         Certificate and replace all Certificates                    |
                    |                                                                     |
                    |      3. Replace Machine SSL certificate with VMCA Certificate       |
                    |                                                                     |
                    |      4. Regenerate a new VMCA Root Certificate and                  |
                    |         replace all certificates                                    |
                    |                                                                     |
                    |      5. Replace Solution user certificates with                     |
                    |         Custom Certificate                                          |
                    |         NOTE: Solution user certs will be deprecated in a future    |
                    |         release of vCenter. Refer to release notes for more details.|
                    |                                                                     |
                    |      6. Replace Solution user certificates with VMCA certificates   |
                    |                                                                     |
                    |      7. Revert last performed operation by re-publishing old        |
                    |         certificates                                                |
                    |                                                                     |
                    |      8. Reset all Certificates                                      |
                    |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|
    Note : Use Ctrl-D to exit.
    Option[1 to 8]: 1
    
    Please provide valid SSO and VC privileged user credential to perform certificate operations.
    Enter username [Administrator@vsphere.local]:
    Enter password:
             1. Generate Certificate Signing Request(s) and Key(s) for Machine SSL certificate
    
             2. Import custom certificate(s) and key(s) to replace existing Machine SSL certificate
    
    Option [1 or 2]: 2
    
    Please provide valid custom certificate for Machine SSL.
    File : /root/machine_ssl/machine_ssl.cer
    
    Please provide valid custom key for Machine SSL.
    File : /root/machine_ssl/vmca_issued_key.key
    
    Please provide the signing certificate of the Machine SSL certificate
    File : /root/machine_ssl/root-64.cer
    
    You are going to replace Machine SSL cert using custom cert
    Continue operation : Option[Y/N] ? : Y
    Command Output: /root/machine_ssl/machine_ssl.cer: OK
    
    Status : 100% Completed [All tasks completed successfully]
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56

    在这里插入图片描述

    此时 SSL 证书的更新状态是100%成功完成。

    6.3 验证自签名证书

    登录 vSphere Client,Menu > Administration > Certificastes > Certificate Management,找到 Machine SSL Certificate,点击VIEW DETAILS

    在这里插入图片描述

    此时 企业CA 直接签发的 Machine SSL 证书替换成功。

    6.4 补充说明

    我们替换的是 Machine SSL 证书,其它 VMCA 证书还是使用 vSphere 默认证书。

    查看 VMware Certificate Authority 的 VMCA_ROOT_CERT 详细信息,显示内容依然和VMware相关:

    在这里插入图片描述

    关联博文

    1.企业 CA 签名证书替换 vSphere Machine SSL 证书Ⅰ—— 生成 CSR
    2.企业 CA 签名证书替换 vSphere Machine SSL 证书Ⅱ—— 创建和添加证书模板
    3.企业 CA 签名证书替换 vSphere Machine SSL 证书Ⅲ—— 颁发自签名与替换证书
    4.[企业 CA 签名证书替换 vSphere Machine SSL 证书Ⅳ—— 替换默认证书](

    参考资料

    • Obtaining vSphere certificates from a Microsoft Certificate Authority (2112014)
    • 博文封面图片来自:https://blog.codavel.com/accepting-self-signed-certificates-in-okhttp3
  • 相关阅读:
    Gitlab-Runner安装并注册
    专访中欧财富伍春兰:财富管理行业数字化转型升级,数据库如何选型?
    本地websocket服务端暴露至公网访问【内网穿透】
    lodash已死?Radash库方法介绍及源码解析 —— 异步方法篇
    STL简介
    Redis系列:Redis的概述与安装
    helm2.0安装及部署
    机器学习:逻辑回归--过采样
    P02014030 陈子俊
    西门子触摸屏上电显示初始画面几秒后,自动切换到下一个画面的具体方法
  • 原文地址:https://blog.csdn.net/NOWSHUT/article/details/133912490
  • 最新文章
  • 【JVM】编译执行与解释执行的区别是什么?JVM 使用哪种方式?
    用 Hashids 优雅解决 C 端自增 ID 暴露问题
    V8引擎 精品漫游指南--Ignition篇(上) 指令 栈帧 槽位 调用约定 内存布局 基础内容
    LLVM Pass快速入门(四):代码插桩
    milkup:桌面端 markdown AI续写和即时渲染
    基于项目工程构建SBOM(软件物料清单)的研究
    鸿蒙应用开发UI基础第二节:鸿蒙应用程序框架核心解析与实操
    .NET 中如何快速实现 List 集合去重?
    扣子Coze实战:从0到1打造抖音+小红书热点监控智能体
    浅谈数据访问层
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号