当前位置: 首页 > article >正文

113. 强制使用 Letsencrypt ECDSA 和 DNS-01 续期挑战的默认 HTTPS Rancher 证书

Environment 环境2.9Situation 地理位置A self-signed default Rancher certificate is currently used and will be migrated to a stronger Let’s Encrypt ECDSA-386 certificate using the DNS-01 renewal challenge.目前使用自签名默认的牧场证书并将通过 DNS-01 续期挑战迁移到更强的 Lets Encrypt ECDSA-386 证书。Resolution 结局Before proceeding, make sure you have backups available in case a rollback is needed. Also, ensure you have read and fully understand all the steps before starting.在继续之前确保你有备份以备需要回滚时使用。此外确保你在开始前阅读并充分理解所有步骤。1 - Modify the URL in the Rancher UI1 - 修改 Rancher 界面中的 URLIf the URL changes, modify it underGlobal settings - Settings - server-url.如果 URL 发生变化请在Global settings - Settings - server-url.2 - Configures cert-manager to issue a Lets Encrypt TLS certificate using DNS-01 challenge2 - 配置证书管理器以使用 DNS-01 挑战发放 TLS 加密证书If your issuer is Cloudflare, copy this in a file,letsencrypt-cert-manager.yamlfor example, and apply it:如果你的发行方是 Cloudflare复制这个文件比如letsencrypt-cert-manager.yaml然后应用span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodeapiVersion: a>span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodekubectl apply -f letsencrypt-cert-manager.yaml/code/span/span/spanNote that if you are using other issuers, please check the cert-manager DNS-01 challenge documentation for the correct syntax.请注意如果您使用其他发行机构请查看 cert-manager DNS-01 挑战文档中的正确语法。To prevent being locked by Letsencrypt during your tests, use the acme staging environment first.为了避免在测试中被 Letsencrypt 锁定建议先使用 acme 的分阶段环境 。3 -Reconfigure Rancher3 -重新配置牧场主Export your previous Rancher helm chart configuration:导出你之前的牧场主舵盘配置span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodehelm get values rancher -n cattle-system -o yaml values.yaml/code/span/span/spanCreate a new Helm chart values file with the following settings:创建一个新的 Helm 图表值文件设置如下span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcode cat ingress_letsencrypt.yaml ingress: tls: source: secret extraAnnotations: a>Since we want to use ECDSA while the default Rancher Ingress uses RSA, we enforce private key regeneration by settingprivate-key-rotation-policytoAlways. After applying the change and once the new certificate is in place, you can remove the annotation to prevent further private key renewals (See point 8). If you choose to keep RSA as the certificate algorithm, this line is not required.由于我们想使用 ECDSA而默认的 Rancher Ingress 使用 RSA我们通过将私钥轮换策略设置为“始终”来强制私钥再生。应用变更后一旦新证书生效你可以移除注释以防止再次续签私钥见第 8 点。如果你选择保留 RSA 作为证书算法这条线就不需要。If you want to stick to your current Rancher version and dont want to update, do not forget to add the--versionoption followed by your version. Ex:--version2.10.1如果你想坚持当前的牧场主版本不想更新别忘了添加--version选项后面是你的版本。Ex--version2.10.1span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodehelm upgrade --install rancher rancher-prime/rancher --namespace cattle-system --set hostnamemy_rancher.a>4 - Check if the new certificate has indeed be issued4 - 确认新证书是否确实已签发Use the following commands to check the renewal status:请使用以下命令检查续订状态span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodekubectl get certificate,certificaterequest,order -n cattle-system/code/span/span/spanspan stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodekubectl events -n cattle-system/code/span/span/spanOnce the Rancher pod deployments have been rolled out, you should be able to log in to Rancher and verify the HTTPS certificate.一旦 Rancher Pod 部署完成你应该能登录 Rancher 并验证 HTTPS 证书。5 - Reconfigure Rancher agents to trust the private CA5 - 重新配置牧场代理以信任私有 CAAs explained in Updating the Rancher certificate, 3 methods exist to force the Rancher agent to trust the CA. Method 3 can be used as a fallback if method 1 and 2 are not possible.如《 更新牧场主证书 》中所述有三种方法可以强制牧场主代理信任 CA。如果方法 1 和 2 不可行方法 3 可以作为备选方案。Method 1: Force a redeploy of the Rancher agent方法一 强制重新部署牧场主代理Method 2: Manually update the checksum environment variable方法 2 手动更新校验和环境变量Method 3: Manually redeploy the Rancher agent方法三 手动重新部署牧场主代理6 - Force Update Fleet clusters to reconnect the fleet-agent to Rancher6 - 强制更新舰队集群重新连接舰队代理与牧场主As explained in Updating the Rancher certificate, you have to selectForce Updatefor the clusters within theContinuous Deliveryview of the Rancher UI to allow the fleet-agent in downstream clusters to successfully connect to Rancher.正如在更新牧场证书中所述你需要在牧场主界面的持续交付视图中选择集群强制更新才能让下游集群中的车队代理成功连接到牧场者。7 - Remove private-key-rotation-policy annotation in ingress7 - 在入口中移除私钥-轮换-策略注释You can now remove the annotation set in point 4 to prevent the renewal of the private key:你现在可以移除第4点的注释以防止私钥的更新On the fly: 即兴span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodekubectl -n cattle-system annotate ingress rancher a>Permanently: Reapply the Rancher Helm chart removing theprivate-key-rotation-policyline iningress_letsencrypt.yaml永久重新应用牧场主 Helm 图表移除ingress_letsencrypt.yaml中的私钥轮换策略行span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcode cat ingress_letsencrypt.yaml ingress: tls: source: secret extraAnnotations: a>span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodehelm upgrade --install rancher rancher-prime/rancher --namespace cattle-system --set hostnamemy_rancher.a>

相关文章:

113. 强制使用 Letsencrypt ECDSA 和 DNS-01 续期挑战的默认 HTTPS Rancher 证书

Environment 环境 2.9 Situation 地理位置A self-signed default Rancher certificate is currently used and will be migrated to a stronger Let’s Encrypt ECDSA-386 certificate using the DNS-01 renewal challenge. 目前使用自签名默认的牧场证书,并将通过…...

GDBFrontend安全部署指南:保护调试会话的5个最佳实践

GDBFrontend安全部署指南:保护调试会话的5个最佳实践 【免费下载链接】gdb-frontend ☕ GDBFrontend is an easy, flexible and extensible gui debugger. Try it on https://debugme.dev 项目地址: https://gitcode.com/gh_mirrors/gd/gdb-frontend GDBFron…...

Reloadium数据库回滚功能:SQLAlchemy和Django ORM的10个最佳实践指南

Reloadium数据库回滚功能:SQLAlchemy和Django ORM的10个最佳实践指南 【免费下载链接】reloadium Hot Reloading, Profiling and AI debugging for Python 项目地址: https://gitcode.com/gh_mirrors/re/reloadium Reloadium是一款强大的Python热重载工具&am…...

OpenClaw多模型切换:千问3.5-9B与本地Llama混合调用

OpenClaw多模型切换:千问3.5-9B与本地Llama混合调用 1. 为什么需要多模型混合调用? 去年冬天,当我第一次尝试用OpenClaw自动生成周报时,发现一个有趣的现象:用同一个模型处理代码片段和文案内容,效果差异…...

突破限制:3大核心功能让MediaCreationTool.bat成为Windows安装自由的终极解决方案

突破限制:3大核心功能让MediaCreationTool.bat成为Windows安装自由的终极解决方案 【免费下载链接】MediaCreationTool.bat Universal MCT wrapper script for all Windows 10/11 versions from 1507 to 21H2! 项目地址: https://gitcode.com/gh_mirrors/me/Media…...

百度网盘提取码智能获取工具:提升资源获取效率的技术方案

百度网盘提取码智能获取工具:提升资源获取效率的技术方案 【免费下载链接】baidupankey 项目地址: https://gitcode.com/gh_mirrors/ba/baidupankey 在数字资源爆炸的今天,百度网盘作为主流文件分享平台,已成为学习资料、工作文件和媒…...

YOLOv11模型转换避坑指南:如何正确修改pnnx.py适配不同输入尺寸

YOLOv11模型转换避坑指南:如何正确修改pnnx.py适配不同输入尺寸 在计算机视觉领域,YOLO系列模型因其高效的检测性能而广受欢迎。YOLOv11作为该系列的最新成员,在保持实时性的同时进一步提升了检测精度。然而,当我们需要将训练好的…...

NLP-StructBERT在跨语言语义匹配中的惊艳效果案例

NLP-StructBERT在跨语言语义匹配中的惊艳效果案例 最近在做一个国际化产品的语义搜索功能时,遇到了一个挺头疼的问题:用户用中文提问,但我们的知识库里有大量优质的英文资料。传统的做法是先把问题翻译成英文,再去搜索&#xff0…...

终极指南:五分钟让Win11老游戏重获联机能力的完整解决方案

终极指南:五分钟让Win11老游戏重获联机能力的完整解决方案 【免费下载链接】ipxwrapper 项目地址: https://gitcode.com/gh_mirrors/ip/ipxwrapper 还在为Win11系统下无法联机玩《星际争霸》《魔兽争霸2》《暗黑破坏神》等经典游戏而烦恼吗?今天…...

Phi-3-mini-gguf辅助C语言学习:从指针理解到项目实战

Phi-3-mini-gguf辅助C语言学习:从指针理解到项目实战 1. 为什么选择AI辅助学习C语言 学习C语言就像学骑自行车,刚开始总会摇摇晃晃,特别是遇到指针和内存管理这些概念时,很容易"摔跟头"。传统的学习方式往往需要反复查…...

Python开发者必看:用SMSBoom给你的短信服务做个‘压力体检’(附完整配置流程)

Python开发者必看:用SMSBoom给你的短信服务做个‘压力体检’(附完整配置流程) 短信服务作为现代应用的关键组件,其稳定性直接影响用户体验。想象一下,当你的电商平台在促销活动期间需要发送大量验证码时,短…...

前端框架选择指南:别再盲目跟风了!

前端框架选择指南:别再盲目跟风了! 毒舌时刻 前端框架?听起来就像是前端工程师为了显得自己很专业而特意搞的一套复杂流程。你以为随便选个框架就能解决所有问题?别做梦了!到时候你会发现,框架的坑比你想象…...

Anthropic员工失误导致Claude Code源代码泄露

事件概述:npm源映射文件暴露专有代码Anthropic公司一名员工在npm公开注册账户发布的AI编程工具Claude Code版本中意外包含源映射(source map)文件,导致该工具的完整专有源代码暴露。AI专家指出,这种失误存在重大安全风…...

FadCam 安卓后台视频录制应用,支持屏幕关闭录制,多画质高帧率,隐私保护,适配个人安防与事件记录等正当用途

大家好,我是大飞哥。在个人安防、事件记录、现场取证等场景中,普通安卓录屏应用大多需要保持屏幕常亮,不仅容易暴露录制行为,还会快速消耗电量,无法满足隐蔽、长效录制的需求,而部分后台录制工具又存在隐私…...

Windows Cleaner终极指南:5分钟彻底解决C盘爆红和系统卡顿问题

Windows Cleaner终极指南:5分钟彻底解决C盘爆红和系统卡顿问题 【免费下载链接】WindowsCleaner Windows Cleaner——专治C盘爆红及各种不服! 项目地址: https://gitcode.com/gh_mirrors/wi/WindowsCleaner Windows Cleaner是一款专为Windows系统…...

Analog入门指南:如何在5分钟内搭建你的第一个Angular全栈应用

Analog入门指南:如何在5分钟内搭建你的第一个Angular全栈应用 【免费下载链接】analog The fullstack meta-framework for Angular. Powered by Vite and Nitro 项目地址: https://gitcode.com/gh_mirrors/an/analog Analog是一个功能强大的Angular全栈元框架…...

技术解析 | 【ECCV2022】MuLUT:多级查找表协同优化在图像超分中的高效实践

1. MuLUT技术背景与核心价值 图像超分辨率(Super-Resolution)技术一直是计算机视觉领域的热门研究方向,简单来说就是让低分辨率图像变清晰的过程。传统基于卷积神经网络(CNN)的方法虽然效果不错,但计算量大…...

特征提取网络对比:ResNet与原始模型在deep_sort_pytorch中的性能差异

特征提取网络对比:ResNet与原始模型在deep_sort_pytorch中的性能差异 【免费下载链接】deep_sort_pytorch MOT using deepsort and yolov3 with pytorch 项目地址: https://gitcode.com/gh_mirrors/de/deep_sort_pytorch 在目标跟踪领域,特征提取…...

GPU Burn:多GPU压力测试的终极解决方案

GPU Burn:多GPU压力测试的终极解决方案 【免费下载链接】gpu-burn Multi-GPU CUDA stress test 项目地址: https://gitcode.com/gh_mirrors/gp/gpu-burn 在高性能计算与深度学习领域,GPU的稳定性直接决定了系统的可靠性。作为一款专注于NVIDIA显卡…...

颠覆式AI视觉自动化:3大突破重新定义UI测试与跨平台交互

颠覆式AI视觉自动化:3大突破重新定义UI测试与跨平台交互 【免费下载链接】midscene AI-powered, vision-driven UI automation for every platform. 项目地址: https://gitcode.com/GitHub_Trending/mid/midscene 在数字化转型加速的今天,UI自动化…...

5大理由选择Blueman:Linux蓝牙管理工具的最优解

5大理由选择Blueman:Linux蓝牙管理工具的最优解 【免费下载链接】blueman Blueman is a GTK Bluetooth Manager 项目地址: https://gitcode.com/gh_mirrors/bl/blueman Blueman作为基于GTK框架的Linux蓝牙管理工具,以其深度的桌面环境整合能力、完…...

机器人学前沿技术探索:robotics-coursework项目高级应用指南

机器人学前沿技术探索:robotics-coursework项目高级应用指南 【免费下载链接】robotics-coursework 🤖 Places where you can learn robotics (and stuff like that) online 🤖 项目地址: https://gitcode.com/gh_mirrors/ro/robotics-cour…...

Sora走了,PixVerse V6来了!AI视频空间时间处理能力大增,延时拍摄、慢动作都能搞

西风 发自 凹非寺量子位 | 公众号 QbitAISora前脚刚被叫停,国内AI视频玩家后脚立刻续上新模型。这回不搞“能生成视频就行”那套了,直接给你整出感官级沉浸式体验。有多沉浸?一句话让你get电影《功夫小蝇》同款视角,小蜜蜂误闯人类…...

3分钟上手VSCode Mermaid Preview:在IDE中实现可视化图表实时预览

3分钟上手VSCode Mermaid Preview:在IDE中实现可视化图表实时预览 【免费下载链接】vscode-mermaid-preview Previews Mermaid diagrams 项目地址: https://gitcode.com/gh_mirrors/vs/vscode-mermaid-preview 还在为编写Mermaid图表时需要在代码编辑器与预览…...

The-Forge安全实践指南:跨平台渲染框架的终极安全保障方案

The-Forge安全实践指南:跨平台渲染框架的终极安全保障方案 【免费下载链接】The-Forge The Forge Cross-Platform Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2 项目地址: https://gitcode.co…...

Koikatu HF Patch完整安装指南:5步轻松解锁游戏全部潜力

Koikatu HF Patch完整安装指南:5步轻松解锁游戏全部潜力 【免费下载链接】KK-HF_Patch Automatically translate, uncensor and update Koikatu! and Koikatsu Party! 项目地址: https://gitcode.com/gh_mirrors/kk/KK-HF_Patch 还在为Koikatu游戏体验不完整…...

Betaflight 2025.12:Azure RTOS架构重构带来的无人机飞控性能革命

Betaflight 2025.12:Azure RTOS架构重构带来的无人机飞控性能革命 【免费下载链接】betaflight Open Source Flight Controller Firmware 项目地址: https://gitcode.com/gh_mirrors/be/betaflight Betaflight作为全球最流行的开源无人机飞控固件&#xff0c…...

Reloadium与Django集成:实现视图热重载和页面自动刷新

Reloadium与Django集成:实现视图热重载和页面自动刷新 【免费下载链接】reloadium Hot Reloading, Profiling and AI debugging for Python 项目地址: https://gitcode.com/gh_mirrors/re/reloadium Reloadium是一个强大的Python开发工具,为你的I…...

PP实施经验分享(22)——(ECC版本)生产版本\BOM\工艺路线选择策略与批量大小优化实践

1. ECC版本下生产版本的选择逻辑 在SAP ECC系统中,生产版本的选择逻辑与S4版本存在显著差异。我经历过一个汽车零部件制造项目,当时客户就遇到了生产版本选择混乱的问题。他们原先使用的是S4系统,切换到ECC后发现很多配置需要重新调整。 物料…...

DeepSeek-Coder-V2-Lite-Instruct跨平台兼容性测试:在不同环境中的运行表现

DeepSeek-Coder-V2-Lite-Instruct跨平台兼容性测试:在不同环境中的运行表现 【免费下载链接】DeepSeek-Coder-V2-Lite-Instruct 开源代码智能利器——DeepSeek-Coder-V2,性能比肩GPT4-Turbo,全面支持338种编程语言,128K超长上下文…...