V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
raw0xff

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

  •  
  •   raw0xff · Dec 21, 2023 · 1299 views
    This topic created in 857 days ago, the information mentioned may be changed or developed.

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

    3 replies    2023-12-21 14:18:55 +08:00
    bv
        1
    bv  
       Dec 21, 2023   ❤️ 1
    根据实际情况,自定义这几个方法中的任意一个即可实现: https://github.com/golang/go/blob/master/src/crypto/tls/common.go#L569-L601
    raw0xff
        3
    raw0xff  
    OP
       Dec 21, 2023
    @bv 收到,感谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6111 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 185ms · UTC 02:08 · PVG 10:08 · LAX 19:08 · JFK 22:08
    ♥ Do have faith in what you're doing.