The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
raw0xff

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

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

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

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