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

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

  •  
  •   raw0xff · Dec 21, 2023 · 1375 views
    This topic created in 899 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   ·   843 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:50 · PVG 05:50 · LAX 14:50 · JFK 17:50
    ♥ Do have faith in what you're doing.