mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 00:09:40 +02:00
fix(tls): specify the TLS MinVersion always EE-4427 (#7869)
This commit is contained in:
parent
f9bbe000fb
commit
4753d52532
5 changed files with 27 additions and 16 deletions
|
@ -346,7 +346,7 @@ func (server *Server) Start() error {
|
|||
TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler)), // Disable HTTP/2
|
||||
}
|
||||
|
||||
httpsServer.TLSConfig = crypto.CreateServerTLSConfiguration()
|
||||
httpsServer.TLSConfig = crypto.CreateTLSConfiguration()
|
||||
httpsServer.TLSConfig.GetCertificate = func(*tls.ClientHelloInfo) (*tls.Certificate, error) {
|
||||
return server.SSLService.GetRawCertificate(), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue