V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
raw0xff
V2EX  ›  Go 编程语言

go 如何在 http.server 中断服务的情况下更新 tls.Config?

  •  
  •   raw0xff · 128 天前 · 788 次点击
    这是一个创建于 128 天前的主题,其中的信息可能已经有所发展或是发生改变。

    目的是想在不中断 http 服务的情况下加载新的证书,求大佬指路

    3 条回复    2023-12-21 14:18:55 +08:00
    bv
        1
    bv  
       128 天前   ❤️ 1
    根据实际情况,自定义这几个方法中的任意一个即可实现: https://github.com/golang/go/blob/master/src/crypto/tls/common.go#L569-L601
    raw0xff
        3
    raw0xff  
    OP
       128 天前
    @bv 收到,感谢!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   894 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:25 · PVG 04:25 · LAX 13:25 · JFK 16:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.